Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Al committed Dec 9, 2024
1 parent f125fed commit b00480d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/OAuth/ResourceOwner/AmazonCognitoResourceOwnerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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'),
]
Expand All @@ -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),
Expand Down

0 comments on commit b00480d

Please sign in to comment.