Skip to content

Commit

Permalink
Temporarily allow deprecated functionality...
Browse files Browse the repository at this point in the history
While it's not possible to upgrade to Laravel Passport v9
  • Loading branch information
amcsi committed Mar 5, 2021
1 parent 7991e2d commit 8ae6b06
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/Feature/Http/Controllers/LoginControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ public function testLogin()
{
$user = factory(User::class)->create();

$oldErrorReporting = error_reporting(error_reporting() & ~E_USER_DEPRECATED);

$response = $this->post('/api/login', [
'email' => $user->email,
'password' => 'secret',
Expand All @@ -35,6 +37,8 @@ public function testLogin()
$data = $response->json();
self::assertInternalType('string', $data['access_token']);
self::assertInternalType('string', $data['refresh_token']);

error_reporting($oldErrorReporting);
}

public function test404WhenEmailNotFound(): void
Expand Down

0 comments on commit 8ae6b06

Please sign in to comment.