Files
pest/stubs/Lumen/Helpers.php
Michael Dyrynda 4496e9d9ee 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.
2020-05-23 20:52:15 +09:30

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);
}