FIX Updating test to not assert order of results

This commit is contained in:
Guy Marriott 2018-07-31 09:26:49 +12:00
parent 7f985ee5c8
commit 8e73114051
No known key found for this signature in database
GPG Key ID: A80F9ACCB86D3DA7

View File

@ -52,13 +52,17 @@ class ContentReviewReportTest extends FunctionalTest
"ReviewDateBefore" => "2010-12-12",
]);
$this->assertEquals([
"Contact Us Child",
"Home",
"About Us",
"Staff",
"Contact Us",
], $results->column("Title"));
$this->assertListContains([
['Title' => 'Contact Us Child'],
['Title' => 'Home'],
['Title' => 'About Us'],
['Title' => 'Staff'],
['Title' => 'Contact Us'],
], $results);
$this->assertListNotContains([
['Title' => 'Page without review date'],
['Title' => 'Page owned by group'],
], $results);
DBDatetime::set_mock_now("2010-02-13 00:00:00");