From e6bf19928fab5686c7b94c873d763565b7d7eed7 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Fri, 14 Dec 2012 11:25:24 +0100 Subject: [PATCH] Less far-future date assertions, seems to throw off some PHP installs Apparently not all PHPs (Travis) are build to last a 100 years, who would've thought ;) --- tests/model/DateTest.php | 4 ++-- tests/model/DatetimeTest.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/model/DateTest.php b/tests/model/DateTest.php index 1e805c2ca..e4f4498d6 100644 --- a/tests/model/DateTest.php +++ b/tests/model/DateTest.php @@ -188,8 +188,8 @@ class DateTest extends SapphireTest { SS_Datetime::set_mock_now('2000-12-31 00:00:00'); $this->assertEquals( - 'in 100 years', - DBField::create_field('Date', '2100-12-31')->Ago(), + 'in 10 years', + DBField::create_field('Date', '2010-12-31')->Ago(), 'Exact past match on years' ); diff --git a/tests/model/DatetimeTest.php b/tests/model/DatetimeTest.php index 12246bc29..0c6ab8a83 100644 --- a/tests/model/DatetimeTest.php +++ b/tests/model/DatetimeTest.php @@ -135,8 +135,8 @@ class SS_DatetimeTest extends SapphireTest { SS_Datetime::set_mock_now('2000-12-31 00:00:00'); $this->assertEquals( - 'in 100 years', - DBField::create_field('SS_Datetime', '2100-12-31 12:00:00')->Ago(), + 'in 10 years', + DBField::create_field('SS_Datetime', '2010-12-31 12:00:00')->Ago(), 'Exact past match on years' );