mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-10-22 14:05:56 +02:00
Merge pull request #225 from creative-commoners/pulls/2.1/update-unit-test-date
Change date on unit test - 2.1
This commit is contained in:
commit
37c79d257a
@ -12,7 +12,8 @@
|
|||||||
"silverstripe/framework": "^3.5",
|
"silverstripe/framework": "^3.5",
|
||||||
"silverstripe/cms": "^3.5",
|
"silverstripe/cms": "^3.5",
|
||||||
"symbiote/silverstripe-gridfieldextensions": "^2.0",
|
"symbiote/silverstripe-gridfieldextensions": "^2.0",
|
||||||
"silverstripe/taxonomy": "^1.2"
|
"silverstripe/taxonomy": "^1.2",
|
||||||
|
"mustangostang/spyc": "<=0.6.2"
|
||||||
},
|
},
|
||||||
"suggest": {
|
"suggest": {
|
||||||
"undefinedoffset/sortablegridfield": "Allow documents to be reordered via drag-and-drop"
|
"undefinedoffset/sortablegridfield": "Allow documents to be reordered via drag-and-drop"
|
||||||
|
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user