mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Remove use of deprecated assertDOSContains
This commit is contained in:
parent
0c23c78bfa
commit
b7510c8a56
@ -42,7 +42,7 @@ class BlogArchiveWidgetTest extends SapphireTest
|
||||
|
||||
$this->assertInstanceOf(SS_List::class, $archive);
|
||||
$this->assertCount(3, $archive);
|
||||
$this->assertDOSContains([
|
||||
$this->assertListContains([
|
||||
['Title' => 'August 2017'],
|
||||
['Title' => 'September 2017'],
|
||||
['Title' => 'May 2015'],
|
||||
@ -61,7 +61,7 @@ class BlogArchiveWidgetTest extends SapphireTest
|
||||
$archive = $widget->getArchive();
|
||||
|
||||
$this->assertCount(1, $archive);
|
||||
$this->assertDOSContains([
|
||||
$this->assertListContains([
|
||||
['Title' => 'August 2017'],
|
||||
], $archive);
|
||||
|
||||
@ -77,7 +77,7 @@ class BlogArchiveWidgetTest extends SapphireTest
|
||||
|
||||
$this->assertInstanceOf(SS_List::class, $archive);
|
||||
$this->assertCount(2, $archive);
|
||||
$this->assertDOSContains([
|
||||
$this->assertListContains([
|
||||
['Title' => '2017'],
|
||||
['Title' => '2015'],
|
||||
], $archive);
|
||||
|
Loading…
Reference in New Issue
Block a user