Merge pull request #222 from creative-commoners/pulls/master/update-unit-test-date

Change date on unit test
This commit is contained in:
Maxime Rainville 2019-12-12 17:45:11 +13:00 committed by GitHub
commit 09fea7961e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +73,7 @@ class DMSEmbargoTest extends SapphireTest
$this->assertFalse($doc->isEmbargoed(), "Document is not embargoed"); $this->assertFalse($doc->isEmbargoed(), "Document is not embargoed");
$this->assertTrue($doc->isExpired(), "Document is expired"); $this->assertTrue($doc->isExpired(), "Document is expired");
$expireTime = "2019-04-05 11:43:13"; $expireTime = "2069-12-12 17:10:13";
$doc->expireAtDate($expireTime); $doc->expireAtDate($expireTime);
$this->assertFalse($doc->isHidden(), "Document is not hidden"); $this->assertFalse($doc->isHidden(), "Document is not hidden");
$this->assertFalse($doc->isEmbargoed(), "Document is not embargoed"); $this->assertFalse($doc->isEmbargoed(), "Document is not embargoed");
@ -114,7 +114,7 @@ class DMSEmbargoTest extends SapphireTest
$this->assertFalse($doc->isEmbargoed(), "Document is not embargoed"); $this->assertFalse($doc->isEmbargoed(), "Document is not embargoed");
$this->assertFalse($doc->isExpired(), "Document is not expired"); $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); $doc->embargoUntilDate($embargoTime);
$this->assertTrue($doc->isHidden(), "Document is hidden"); $this->assertTrue($doc->isHidden(), "Document is hidden");
$this->assertTrue($doc->isEmbargoed(), "Document is embargoed"); $this->assertTrue($doc->isEmbargoed(), "Document is embargoed");