Merge remote-tracking branch 'origin/3.1'

This commit is contained in:
Ingo Schommer 2012-12-14 11:39:21 +01:00
commit 11987ac460
2 changed files with 4 additions and 4 deletions

View File

@ -188,8 +188,8 @@ class DateTest extends SapphireTest {
SS_Datetime::set_mock_now('2000-12-31 00:00:00'); SS_Datetime::set_mock_now('2000-12-31 00:00:00');
$this->assertEquals( $this->assertEquals(
'in 100 years', 'in 10 years',
DBField::create_field('Date', '2100-12-31')->Ago(), DBField::create_field('Date', '2010-12-31')->Ago(),
'Exact past match on years' 'Exact past match on years'
); );

View File

@ -135,8 +135,8 @@ class SS_DatetimeTest extends SapphireTest {
SS_Datetime::set_mock_now('2000-12-31 00:00:00'); SS_Datetime::set_mock_now('2000-12-31 00:00:00');
$this->assertEquals( $this->assertEquals(
'in 100 years', 'in 10 years',
DBField::create_field('SS_Datetime', '2100-12-31 12:00:00')->Ago(), DBField::create_field('SS_Datetime', '2010-12-31 12:00:00')->Ago(),
'Exact past match on years' 'Exact past match on years'
); );