diff --git a/tests/Feature/AccessTokenControllerTest.php b/tests/Feature/AccessTokenControllerTest.php index e5f4af83b..cb1052482 100644 --- a/tests/Feature/AccessTokenControllerTest.php +++ b/tests/Feature/AccessTokenControllerTest.php @@ -216,11 +216,11 @@ public function testGettingAccessTokenWithPasswordGrantWithInvalidPassword() $this->assertArrayNotHasKey('expires_in', $decodedResponse); $this->assertArrayNotHasKey('access_token', $decodedResponse); $this->assertArrayNotHasKey('refresh_token', $decodedResponse); + $this->assertArrayNotHasKey('hint', $decodedResponse); $this->assertArrayHasKey('error', $decodedResponse); $this->assertSame('invalid_grant', $decodedResponse['error']); $this->assertArrayHasKey('error_description', $decodedResponse); - $this->assertArrayHasKey('hint', $decodedResponse); $this->assertArrayHasKey('message', $decodedResponse); $this->assertSame(0, Token::count()); diff --git a/tests/Unit/PassportServiceProviderTest.php b/tests/Unit/PassportServiceProviderTest.php index 9fc237432..9355268df 100644 --- a/tests/Unit/PassportServiceProviderTest.php +++ b/tests/Unit/PassportServiceProviderTest.php @@ -34,7 +34,7 @@ public function test_can_use_crypto_keys_from_config() $this->assertSame( $privateKeyString, - file_get_contents($cryptKey->getKeyPath()) + $cryptKey->getKeyContents() ); }