Skip to content

Commit

Permalink
要らない引数名$clientは特別引数名?
Browse files Browse the repository at this point in the history
  • Loading branch information
sai-gillingham committed Sep 21, 2023
1 parent 85c42ea commit 38e8602
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions Tests/Web/ApiControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function permissionProvider()
/**
* @dataProvider logAndInvalidate0Auth2SessionProvider
*/
public function testLogoutAndInvalidateOAuth2Session(string $identifier, array $client, array $post_login_data, array $post_logout_data)
public function testLogoutAndInvalidateOAuth2Session(string $identifier, array $post_login_data, array $post_logout_data)
{
$this->deleteAllRows(['oauth2_refresh_token', 'oauth2_access_token']);

Expand Down Expand Up @@ -157,20 +157,10 @@ public function logAndInvalidate0Auth2SessionProvider(): array
{
$clientInfo = [
'[email protected]' => [
'client' => [
'identifier' => hash('md5', random_bytes(16)),
'secret' => hash('sha512', random_bytes(32)),
'redirect_uri' => 'http://localhost:8080' . $this->generateUrl('homepage'),
],
'identifier' => hash('md5', random_bytes(16)),
'expiry' => new \DateTimeImmutable('+1 days', new \DateTimeZone('Asia/Tokyo')),
],
'[email protected]' => [
'client' => [
'identifier' => hash('md5', random_bytes(16)),
'secret' => hash('sha512', random_bytes(32)),
'redirect_uri' => 'http://localhost:8080' . $this->generateUrl('homepage'),
],
'identifier' => hash('md5', random_bytes(16)),
'secret' => hash('sha512', random_bytes(32)),
'expiry' => new \DateTimeImmutable('-1 days', new \DateTimeZone('Asia/Tokyo')),
Expand All @@ -180,7 +170,6 @@ public function logAndInvalidate0Auth2SessionProvider(): array
return [
[
'identifier' => '[email protected]',
'client' => $clientInfo['[email protected]']['client'],
'post_login_data' => [
'oauth2_access_token' => [
'user_identifier' => '[email protected]',
Expand Down Expand Up @@ -213,7 +202,6 @@ public function logAndInvalidate0Auth2SessionProvider(): array
],
], [
'identifier' => '[email protected]',
'client' => $clientInfo['[email protected]']['client'],
'post_login_data' => [
'oauth2_access_token' => [
'user_identifier' => '[email protected]',
Expand Down

0 comments on commit 38e8602

Please sign in to comment.