mirror of
https://github.com/silverstripe/silverstripe-contentreview
synced 2024-10-22 17:05:47 +02:00
Fixed the ContentReviewReportTest for real this time, wrong order in assertEquals
This commit is contained in:
parent
c078bae7db
commit
ea44b0026e
@ -18,20 +18,21 @@ class ContentReviewReportTest extends FunctionalTest {
|
||||
'ReviewDateBefore' => '12/12/2010'
|
||||
), 'NextReviewDate ASC', false);
|
||||
|
||||
$this->assertEquals($results->column('Title'), array(
|
||||
$this->assertEquals(array(
|
||||
'Contact Us',
|
||||
'Contact Us Child',
|
||||
'Staff',
|
||||
'About Us',
|
||||
'Home'
|
||||
));
|
||||
), $results->column('Title'));
|
||||
|
||||
SS_Datetime::set_mock_now('2010-02-13 00:00:00');
|
||||
$results = $report->sourceRecords(array(
|
||||
), 'NextReviewDate ASC', false);
|
||||
$this->assertEquals($results->column('Title'), array(
|
||||
$this->assertEquals(array(
|
||||
'About Us',
|
||||
'Home'
|
||||
));
|
||||
), $results->column('Title'));
|
||||
|
||||
SS_Datetime::clear_mock_now();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user