From 209737c4b6e7212e1a8b6654e84d0e5979218e73 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Thu, 12 Dec 2019 17:30:11 +1300 Subject: [PATCH 1/2] Change date on unit test --- tests/DMSEmbargoTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/DMSEmbargoTest.php b/tests/DMSEmbargoTest.php index bd5faed..484444f 100644 --- a/tests/DMSEmbargoTest.php +++ b/tests/DMSEmbargoTest.php @@ -73,7 +73,7 @@ class DMSEmbargoTest extends SapphireTest $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"); @@ -114,7 +114,7 @@ class DMSEmbargoTest extends SapphireTest $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"); From 402dc77ed643b7a742809c8e9430e919abaed6e7 Mon Sep 17 00:00:00 2001 From: Serge Latyntcev Date: Tue, 26 Nov 2019 16:37:01 +1300 Subject: [PATCH 2/2] Require spyc 0.6.2 or less (0.6.3 requires at least php 5.6) --- composer.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 08fbf37..6acf963 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,8 @@ "silverstripe/framework": "^3.5", "silverstripe/cms": "^3.5", "symbiote/silverstripe-gridfieldextensions": "^2.0", - "silverstripe/taxonomy": "^1.2" + "silverstripe/taxonomy": "^1.2", + "mustangostang/spyc": "<=0.6.2" }, "suggest": { "undefinedoffset/sortablegridfield": "Allow documents to be reordered via drag-and-drop"