mirror of
https://github.com/silverstripe/silverstripe-contentreview
synced 2024-10-22 17:05:47 +02:00
Merge pull request #90 from creative-commoners/pulls/4.1/reduce-test-assertion
FIX Updating test to not assert order of results
This commit is contained in:
commit
6ff726d0a1
@ -52,13 +52,17 @@ class ContentReviewReportTest extends FunctionalTest
|
|||||||
"ReviewDateBefore" => "2010-12-12",
|
"ReviewDateBefore" => "2010-12-12",
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$this->assertEquals([
|
$this->assertListContains([
|
||||||
"Contact Us Child",
|
['Title' => 'Contact Us Child'],
|
||||||
"Home",
|
['Title' => 'Home'],
|
||||||
"About Us",
|
['Title' => 'About Us'],
|
||||||
"Staff",
|
['Title' => 'Staff'],
|
||||||
"Contact Us",
|
['Title' => 'Contact Us'],
|
||||||
], $results->column("Title"));
|
], $results);
|
||||||
|
$this->assertListNotContains([
|
||||||
|
['Title' => 'Page without review date'],
|
||||||
|
['Title' => 'Page owned by group'],
|
||||||
|
], $results);
|
||||||
|
|
||||||
DBDatetime::set_mock_now("2010-02-13 00:00:00");
|
DBDatetime::set_mock_now("2010-02-13 00:00:00");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user