mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
This entails creating Laravel and Lumen-specific stubs, and ensuring that the appropriate stubs are copied as part of the pest install.
12 lines
243 B
PHP
12 lines
243 B
PHP
<?php
|
|
|
|
use Illuminate\Contracts\Auth\Authenticatable;
|
|
|
|
/**
|
|
* Set the currently logged in user for the application.
|
|
*/
|
|
function actingAs(Authenticatable $user, string $driver = null): TestCase
|
|
{
|
|
return test()->actingAs($user, $driver);
|
|
}
|