passport-multiauth
passport-multiauth copied to clipboard
Unit tests as defined is not working
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);
}
@salvationarinze please let know what the package version where the possible error is occurring.
It just says "Unauthenticated"