You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have trying to perform unit testing as defined in the docs but it keeps saying "Illuminate\Auth\AuthenticationException : Unauthenticated". Please help
public function testBasicTest()
{
$this->withoutExceptionHandling();
$user = factory(Admin::class)->create();
PassportMultiauth::actingAs($user);
$response = $this->get('api/user');
$response->assertStatus(200);
}
The text was updated successfully, but these errors were encountered:
I have trying to perform unit testing as defined in the docs but it keeps saying "Illuminate\Auth\AuthenticationException : Unauthenticated". Please help
The text was updated successfully, but these errors were encountered: