feat(namespaced-helpers): udpates stubs

This commit is contained in:
Nuno Maduro
2020-06-14 01:03:35 +02:00
parent 961bfcaff7
commit 39a5a94f3e
2 changed files with 16 additions and 9 deletions

View File

@ -1,12 +1,15 @@
<?php
use Illuminate\Contracts\Auth\Authenticatable;
use Tests\TestCase;
namespace Tests;
/**
* Set the currently logged in user for the application.
* A basic assert example.
*
* @return TestCase
*/
function actingAs(Authenticatable $user, string $driver = null): TestCase
function assertExample()
{
return test()->actingAs($user, $driver);
test()->assertTrue(true);
return test();
}

View File

@ -1,11 +1,15 @@
<?php
use Illuminate\Contracts\Auth\Authenticatable;
namespace Tests;
/**
* Set the currently logged in user for the application.
* A basic assert example.
*
* @return TestCase
*/
function actingAs(Authenticatable $user, string $driver = null): TestCase
function assertExample()
{
return test()->actingAs($user, $driver);
test()->assertTrue(true);
return test();
}