diff --git a/tests/OAuth/ResourceOwner/AmazonCognitoResourceOwnerTest.php b/tests/OAuth/ResourceOwner/AmazonCognitoResourceOwnerTest.php index 87fcf6265..9981502c3 100644 --- a/tests/OAuth/ResourceOwner/AmazonCognitoResourceOwnerTest.php +++ b/tests/OAuth/ResourceOwner/AmazonCognitoResourceOwnerTest.php @@ -14,6 +14,7 @@ use HWI\Bundle\OAuthBundle\OAuth\ResourceOwner\AmazonCognitoResourceOwner; use HWI\Bundle\OAuthBundle\OAuth\Response\AbstractUserResponse; use HWI\Bundle\OAuthBundle\Test\OAuth\ResourceOwner\GenericOAuth2ResourceOwnerTestCase; +use Symfony\Component\Security\Core\Exception\AuthenticationException; final class AmazonCognitoResourceOwnerTest extends GenericOAuth2ResourceOwnerTestCase { @@ -40,7 +41,7 @@ public function testGetUserInformation(): void 'domain' => 'test.com', 'region' => 'us-east-1', ], - [], + $this->paths, [ $this->createMockResponse($this->userResponse, 'application/json; charset=utf-8'), ] @@ -64,7 +65,10 @@ public function testGetUserInformationFailure(): void $this->expectException(AuthenticationException::class); $resourceOwner = $this->createResourceOwner( - [], + [ + 'domain' => 'test.com', + 'region' => 'us-east-1', + ], [], [ $this->createMockResponse('invalid', 'application/json; charset=utf-8', 401),