trait InteractsWithAuthentication (View source)
$this | actingAs(Authenticatable $user, string|null $driver = null) Set the currently logged in user for the application. | |
void | be(Authenticatable $user, string|null $driver = null) Set the currently logged in user for the application. | |
$this | seeIsAuthenticated(string|null $guard = null) Assert that the user is authenticated. | |
$this | dontSeeIsAuthenticated(string|null $guard = null) Assert that the user is not authenticated. | |
$this | seeIsAuthenticatedAs($user, string|null $guard = null) Assert that the user is authenticated as the given user. | |
$this | seeCredentials(array $credentials, string|null $guard = null) Assert that the given credentials are valid. | |
$this | dontSeeCredentials(array $credentials, string|null $guard = null) Assert that the given credentials are invalid. |
Set the currently logged in user for the application.
Set the currently logged in user for the application.
Assert that the user is authenticated.
Assert that the user is not authenticated.
Assert that the user is authenticated as the given user.
Assert that the given credentials are valid.
Assert that the given credentials are invalid.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.4/Illuminate/Foundation/Testing/Concerns/InteractsWithAuthentication.html