InteractsWithAuthentication
trait InteractsWithAuthentication (View source)
Methods
$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. | |
bool | isAuthenticated(string|null $guard = null) Return true if the user is authenticated, false otherwise. | |
$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. | |
bool | hasCredentials(array $credentials, string|null $guard = null) Return true is the credentials are valid, false otherwise. |
Details
$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.
protected bool isAuthenticated(string|null $guard = null)
Return true if the user is authenticated, false otherwise.
$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.
protected bool hasCredentials(array $credentials, string|null $guard = null)
Return true is the credentials are valid, false otherwise.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.3/Illuminate/Foundation/Testing/Concerns/InteractsWithAuthentication.html