Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Reverting changes to unit tests
Browse files Browse the repository at this point in the history
Removing the key id from when only one secret/algorithm is supplied
  • Loading branch information
JimTools committed Dec 17, 2023
1 parent b3ed450 commit 0d3615c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/JwtAuthenticationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function testShouldReturn200WithTokenFromHeader(): void
$collection = new MiddlewareCollection([
new JwtAuthentication([
"secret" => "supersecretkeyyoushouldnotcommittogithub",
"algorithm" => ['acme' => 'HS256'],
"algorithm" => ['HS256'],
"header" => "X-Token"
])
]);
Expand All @@ -134,7 +134,7 @@ public function testShouldReturn200WithTokenFromHeaderWithCustomRegexp(): void
$collection = new MiddlewareCollection([
new JwtAuthentication([
"secret" => "supersecretkeyyoushouldnotcommittogithub",
"algorithm" => ['acme' => 'HS256'],
"algorithm" => ['HS256'],
"header" => "X-Token",
"regexp" => "/(.*)/"
])
Expand All @@ -161,7 +161,7 @@ public function testShouldReturn200WithTokenFromCookie(): void
$collection = new MiddlewareCollection([
new JwtAuthentication([
"secret" => "supersecretkeyyoushouldnotcommittogithub",
"algorithm" => ['acme' => 'HS256'],
"algorithm" => ['HS256'],
"cookie" => "nekot",
])
]);
Expand All @@ -187,7 +187,7 @@ public function testShouldReturn200WithTokenFromBearerCookie(): void
$collection = new MiddlewareCollection([
new JwtAuthentication([
"secret" => "supersecretkeyyoushouldnotcommittogithub",
"algorithm" => ['acme' => 'HS256'],
"algorithm" => ['HS256'],
"cookie" => "nekot",
])
]);
Expand Down

0 comments on commit 0d3615c

Please sign in to comment.