mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
MINOR: Fixed side report tests to suit new report system. (from r96646)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@98198 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
f288815ab4
commit
602e5ae671
@ -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