amreyes90
3 months ago

Simple Laravel Passeport Route Testing

Posted 3 months ago by amreyes90

I encounter a small problem when performing unit tests for the default Passport 5.8 routes.

In fact I tested the route / oauth / clients in get mode:

/** @test */ public function getOauthClients() { $user = factory(User::class)->make(); $response = $this->actingAs($user)->getJson('/oauth/clients'); $response->assertSuccessful(); }

But when I want to test the route provided by default in get mode: /oauth/token , I do not know what are the steps I need to follow.

Thank you in advance.

Please sign in or create an account to participate in this conversation.