From 930074c2a2a4df14912153b4f77dfa615f597743 Mon Sep 17 00:00:00 2001 From: Michael Strong Date: Mon, 9 Nov 2015 15:52:21 +1300 Subject: [PATCH] FIX Hardcode the year to the current year in setUp() --- tests/BlogTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/BlogTest.php b/tests/BlogTest.php index 5f32265..79931fb 100755 --- a/tests/BlogTest.php +++ b/tests/BlogTest.php @@ -110,7 +110,7 @@ class BlogTest extends SapphireTest { $link = Controller::join_links($blog->Link('archive')); $this->assertEquals(200, $this->getStatusOf($link), 'HTTP Status should be 200'); - $this->assertEquals(SS_Datetime::now()->Year(), ModelAsController::controller_for($blog)->getArchiveYear(), 'Defaults to current year'); + $this->assertEquals('2013', ModelAsController::controller_for($blog)->getArchiveYear(), 'Defaults to current year'); $link = Controller::join_links($blog->Link('archive'), 'invalid-year');