feat(helpers): adds helpers file

This commit is contained in:
Nuno Maduro
2020-05-14 23:03:56 +02:00
parent 9288490613
commit c97fd17120
5 changed files with 37 additions and 5 deletions

12
stubs/Helpers.php Normal file
View 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);
}