mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MINOR: Fixed side report tests to suit new report system. (from r96646) (from r98198)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@105843 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
65a35d92fc
commit
2451fdbee9
@ -31,9 +31,9 @@ class SideReportTest extends SapphireTest {
|
||||
$r = new SideReport_RecentlyEdited();
|
||||
|
||||
// check if contains only elements not older than $daysAgo days
|
||||
$this->assertNotNull($r->records());
|
||||
$this->assertContains($after->ID, $r->records()->column('ID'));
|
||||
$this->assertNotContains($before->ID, $r->records()->column('ID'));
|
||||
$this->assertNotNull($r->records(array()));
|
||||
$this->assertContains($after->ID, $r->records(array())->column('ID'));
|
||||
$this->assertNotContains($before->ID, $r->records(array())->column('ID'));
|
||||
|
||||
SS_DateTime::clear_mock_now();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user