Skip to content
This repository has been archived by the owner on Dec 2, 2021. It is now read-only.

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Roel van Duijnhoven committed Apr 11, 2018
1 parent dadc0cb commit 53004d6
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,10 @@ public function testRemoveSerie()
$this->service->removeSerie(3, 'abc');
}

public function testGetNextSerie()
public function testGetNextSerieWhenRefreshDisabled()
{
$this->options->setTokenRefreshedAfterLogin(false);

$this->assumeSerie($serie = new SerieToken(3, 'abc', 'def'));
$serie->setExpiresAt(new \DateTime('tomorrow'));

Expand All @@ -95,10 +97,8 @@ public function testGetNextSerie()
$this->assertDateTimeEquals(new \DateTime('+1 year'), $serie->getExpiresAt());
}

public function testGetNextSerieWhenRefreshEnabled()
public function testGetNextSerie()
{
$this->options->setTokenRefreshedAfterLogin(true);

$this->assumeSerie($serie = new SerieToken(3, 'abc', 'def'));
$serie->setExpiresAt(new \DateTime('tomorrow'));

Expand Down

0 comments on commit 53004d6

Please sign in to comment.