mirror of
https://github.com/silverstripe/silverstripe-contentreview
synced 2024-10-22 17:05:47 +02:00
Merge pull request #91 from dhensby/pulls/fix-assert
FIX Use assertListEquals instead of contains and notcontains
This commit is contained in:
commit
8428df1502
@ -52,17 +52,13 @@ class ContentReviewReportTest extends FunctionalTest
|
|||||||
"ReviewDateBefore" => "2010-12-12",
|
"ReviewDateBefore" => "2010-12-12",
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$this->assertListContains([
|
$this->assertListEquals([
|
||||||
['Title' => 'Contact Us Child'],
|
['Title' => 'Contact Us Child'],
|
||||||
['Title' => 'Home'],
|
['Title' => 'Home'],
|
||||||
['Title' => 'About Us'],
|
['Title' => 'About Us'],
|
||||||
['Title' => 'Staff'],
|
['Title' => 'Staff'],
|
||||||
['Title' => 'Contact Us'],
|
['Title' => 'Contact Us'],
|
||||||
], $results);
|
], $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