Skip to content

Commit

Permalink
feature #203 Fix tests compatibility with league/oauth2-server:^9.1
Browse files Browse the repository at this point in the history
… (ajgarlag)

This PR was merged into the 0.9-dev branch.

Discussion
----------

Fix tests compatibility with `league/oauth2-server:^9.1`

See thephpleague/oauth2-server#1433

Commits
-------

7660212 Fix tests compatibility with `league/oauth2-server:^9.1`
  • Loading branch information
chalasr committed Nov 29, 2024
2 parents 1ae55cc + 7660212 commit 03d9cd8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"ext-openssl": "*",
"doctrine/doctrine-bundle": "^2.8.0",
"doctrine/orm": "^2.14|^3.0",
"league/oauth2-server": "^9.0.1",
"league/oauth2-server": "^9.1",
"nyholm/psr7": "^1.4",
"psr/http-factory": "^1.0",
"symfony/event-dispatcher": "^5.4|^6.2|^7.0",
Expand Down
4 changes: 2 additions & 2 deletions tests/Integration/AuthorizationServerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -682,8 +682,8 @@ public function testFailedAuthorizationWithExpiredCode(): void
$response = $this->handleTokenRequest($request);

// Response assertions.
$this->assertSame('invalid_request', $response['error']);
$this->assertSame('The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.', $response['error_description']);
$this->assertSame('invalid_grant', $response['error']);
$this->assertSame('The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.', $response['error_description']);
$this->assertSame('Authorization code has expired', $response['hint']);
}

Expand Down

0 comments on commit 03d9cd8

Please sign in to comment.