Fixed the ContentReviewReportTest for real this time, wrong order in assertEquals

This commit is contained in:
Stig Lindqvist 2014-02-25 21:21:08 +13:00
parent c078bae7db
commit ea44b0026e

View File

@ -18,20 +18,21 @@ class ContentReviewReportTest extends FunctionalTest {
'ReviewDateBefore' => '12/12/2010' 'ReviewDateBefore' => '12/12/2010'
), 'NextReviewDate ASC', false); ), 'NextReviewDate ASC', false);
$this->assertEquals($results->column('Title'), array( $this->assertEquals(array(
'Contact Us', 'Contact Us',
'Contact Us Child',
'Staff', 'Staff',
'About Us', 'About Us',
'Home' 'Home'
)); ), $results->column('Title'));
SS_Datetime::set_mock_now('2010-02-13 00:00:00'); SS_Datetime::set_mock_now('2010-02-13 00:00:00');
$results = $report->sourceRecords(array( $results = $report->sourceRecords(array(
), 'NextReviewDate ASC', false); ), 'NextReviewDate ASC', false);
$this->assertEquals($results->column('Title'), array( $this->assertEquals(array(
'About Us', 'About Us',
'Home' 'Home'
)); ), $results->column('Title'));
SS_Datetime::clear_mock_now(); SS_Datetime::clear_mock_now();
} }