Skip to content

Commit

Permalink
Merge pull request #222 from creative-commoners/pulls/master/update-u…
Browse files Browse the repository at this point in the history
…nit-test-date

Change date on unit test
  • Loading branch information
maxime-rainville committed Dec 12, 2019
2 parents f2ef1b8 + e2dc05b commit 09fea79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/DMSEmbargoTest.php
Expand Up @@ -73,7 +73,7 @@ public function testExpireAtDate()
$this->assertFalse($doc->isEmbargoed(), "Document is not embargoed");
$this->assertTrue($doc->isExpired(), "Document is expired");

$expireTime = "2019-04-05 11:43:13";
$expireTime = "2069-12-12 17:10:13";
$doc->expireAtDate($expireTime);
$this->assertFalse($doc->isHidden(), "Document is not hidden");
$this->assertFalse($doc->isEmbargoed(), "Document is not embargoed");
Expand Down Expand Up @@ -114,7 +114,7 @@ public function testEmbargoUntilDate()
$this->assertFalse($doc->isEmbargoed(), "Document is not embargoed");
$this->assertFalse($doc->isExpired(), "Document is not expired");

$embargoTime = "2019-04-05 11:43:13";
$embargoTime = "2069-12-12 17:10:13";
$doc->embargoUntilDate($embargoTime);
$this->assertTrue($doc->isHidden(), "Document is hidden");
$this->assertTrue($doc->isEmbargoed(), "Document is embargoed");
Expand Down

0 comments on commit 09fea79

Please sign in to comment.