From 5f42ad98b257fe31a428bd95c8203d4e8a04447e Mon Sep 17 00:00:00 2001 From: Sean Tymon Date: Mon, 4 Mar 2019 20:00:07 +0000 Subject: [PATCH] test: Fix for other carbon issue --- tests/BlacklistTest.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/BlacklistTest.php b/tests/BlacklistTest.php index 0a0ad43a0..3c1def81d 100644 --- a/tests/BlacklistTest.php +++ b/tests/BlacklistTest.php @@ -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 */