Skip to content

Commit

Permalink
test: Fix for other carbon issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tymondesigns committed Mar 4, 2019
1 parent 2e636a6 commit 5f42ad9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/BlacklistTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,13 @@ public function it_should_return_true_when_adding_an_expired_token_to_the_blackl

$payload = new Payload($collection, $this->validator, true);

$this->storage->shouldReceive('add')->with('foo', ['valid_until' => $this->testNowTimestamp], 20161)->once();
$this->assertTrue($this->blacklist->add($payload));
$refreshTTL = 20161;

$this->storage->shouldReceive('add')
->with('foo', ['valid_until' => $this->testNowTimestamp], $refreshTTL + 1)
->once();

$this->assertTrue($this->blacklist->setRefreshTTL($refreshTTL)->add($payload));
}

/** @test */
Expand Down

0 comments on commit 5f42ad9

Please sign in to comment.