Skip to content

Commit

Permalink
Fix bug in Manager Test
Browse files Browse the repository at this point in the history
  • Loading branch information
robinnydahl committed Oct 30, 2024
1 parent 81dba84 commit 9d8bb95
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/ManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,6 @@ public function testBuildRefreshClaimsMethodWillRefreshTheIAT()

public function testBuildRefreshClaimsMethodWillNotRefreshTheIAT()
{
$this->app['config']->set('jwt.refresh_iat', false);

$claims = [
new Subject(1),
new Issuer('http://example.com'),
Expand All @@ -241,6 +239,7 @@ public function testBuildRefreshClaimsMethodWillNotRefreshTheIAT()
$buildRefreshClaimsMethod = $managerClass->getMethod('buildRefreshClaims');
$buildRefreshClaimsMethod->setAccessible(true);
$managerInstance = new Manager($this->jwt, $this->blacklist, $this->factory);
$managerInstance->setRefreshIat(false);

$firstResult = $buildRefreshClaimsMethod->invokeArgs($managerInstance, [$payload]);
Carbon::setTestNow(Carbon::now()->addMinutes(2));
Expand Down

0 comments on commit 9d8bb95

Please sign in to comment.