mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
feat(namespaced-helpers): udpates stubs
This commit is contained in:
@ -1,12 +1,15 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Illuminate\Contracts\Auth\Authenticatable;
|
namespace Tests;
|
||||||
use Tests\TestCase;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,11 +1,15 @@
|
|||||||
<?php
|
<?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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user