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' );