mirror of
https://github.com/pestphp/pest.git
synced 2026-03-12 10:47:25 +01:00
Add support for installing Pest into a Lumen application
This entails creating Laravel and Lumen-specific stubs, and ensuring that the appropriate stubs are copied as part of the pest install.
This commit is contained in:
12
stubs/Laravel/Helpers.php
Normal file
12
stubs/Laravel/Helpers.php
Normal file
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Contracts\Auth\Authenticatable;
|
||||
use Tests\TestCase;
|
||||
|
||||
/**
|
||||
* Set the currently logged in user for the application.
|
||||
*/
|
||||
function actingAs(Authenticatable $user, string $driver = null): TestCase
|
||||
{
|
||||
return test()->actingAs($user, $driver);
|
||||
}
|
||||
Reference in New Issue
Block a user