Skip to content

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 Aug 6, 2022
1 parent 05075c8 commit c1612c5
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()
$collection = new MiddlewareCollection([
new JwtAuthentication([
"secret" => "supersecretkeyyoushouldnotcommittogithub",
"algorithm" => ['acme' => 'HS256'],
"algorithm" => ['HS256'],
"header" => "X-Token"
])
]);
Expand All @@ -134,7 +134,7 @@ public function testShouldReturn200WithTokenFromHeaderWithCustomRegexp()
$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()
$collection = new MiddlewareCollection([
new JwtAuthentication([
"secret" => "supersecretkeyyoushouldnotcommittogithub",
"algorithm" => ['acme' => 'HS256'],
"algorithm" => ['HS256'],
"cookie" => "nekot",
])
]);
Expand All @@ -187,7 +187,7 @@ public function testShouldReturn200WithTokenFromBearerCookie()
$collection = new MiddlewareCollection([
new JwtAuthentication([
"secret" => "supersecretkeyyoushouldnotcommittogithub",
"algorithm" => ['acme' => 'HS256'],
"algorithm" => ['HS256'],
"cookie" => "nekot",
])
]);
Expand Down

0 comments on commit c1612c5

Please sign in to comment.