passport-multiauth icon indicating copy to clipboard operation
passport-multiauth copied to clipboard

Unit tests as defined is not working

Open salvationarinze opened this issue 5 years ago • 2 comments

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 avatar Feb 24 '20 12:02 salvationarinze

@salvationarinze please let know what the package version where the possible error is occurring.

sfelix-martins avatar Mar 09 '20 09:03 sfelix-martins

It just says "Unauthenticated"

salvationarinze avatar Apr 19 '20 01:04 salvationarinze