mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge remote-tracking branch 'origin/3.1'
This commit is contained in:
commit
11987ac460
@ -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'
|
||||
);
|
||||
|
||||
|
@ -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'
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user