diff --git a/tests/Grant/AuthCodeGrantTest.php b/tests/Grant/AuthCodeGrantTest.php index b6c827316..4e0586109 100644 --- a/tests/Grant/AuthCodeGrantTest.php +++ b/tests/Grant/AuthCodeGrantTest.php @@ -509,8 +509,7 @@ public function testValidateAuthorizationRequestInvalidScopes(): void return; } - $this->expectException(OAuthServerException::class); - $this->expectExceptionCode(5); + $this->fail('The expected exception was not thrown'); } public function testCompleteAuthorizationRequest(): void @@ -595,8 +594,7 @@ public function testCompleteAuthorizationRequestDenied(): void return; } - $this->expectException(OAuthServerException::class); - $this->expectExceptionCode(9); + $this->fail('The expected exception was not thrown'); } public function testRespondToAccessTokenRequest(): void diff --git a/tests/Grant/ImplicitGrantTest.php b/tests/Grant/ImplicitGrantTest.php index 30ad4cb6c..c38f59629 100644 --- a/tests/Grant/ImplicitGrantTest.php +++ b/tests/Grant/ImplicitGrantTest.php @@ -241,8 +241,7 @@ public function testValidateAuthorizationRequestInvalidScopes(): void return; } - $this->expectException(OAuthServerException::class); - $this->expectExceptionCode(5); + $this->fail('Did not throw expected exception'); } public function testCompleteAuthorizationRequest(): void @@ -311,8 +310,7 @@ public function testCompleteAuthorizationRequestDenied(): void return; } - $this->expectException(OAuthServerException::class); - $this->expectExceptionCode(9); + $this->fail('Did not throw expected exception'); } public function testAccessTokenRepositoryUniqueConstraintCheck(): void