mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Update references to text fixtures and SS_List class namespace from cherry-picked SilverStripe 3 commit
This commit is contained in:
parent
3d9031aaac
commit
98183ad677
@ -64,7 +64,7 @@ class BlogArchiveWidgetTest extends SapphireTest
|
||||
$original = Versioned::get_stage();
|
||||
|
||||
$this->objFromFixture(BlogPost::class, 'post-b')->publishRecursive();
|
||||
$this->objFromFixture(BlogArchiveWidget::class, 'archive-monthly')->publishRecursive();
|
||||
$this->objFromFixture(BlogArchiveWidget::class, 'archive-monthly-a')->publishRecursive();
|
||||
Versioned::set_stage(Versioned::LIVE);
|
||||
|
||||
$widget = $this->objFromFixture(BlogArchiveWidget::class, 'archive-monthly-a');
|
||||
@ -95,7 +95,7 @@ class BlogArchiveWidgetTest extends SapphireTest
|
||||
$widgetB = $this->objFromFixture(BlogArchiveWidget::class, 'archive-yearly-b');
|
||||
$archiveB = $widgetB->getArchive();
|
||||
|
||||
$this->assertInstanceOf('SS_List', $archiveB);
|
||||
$this->assertInstanceOf(SS_List::class, $archiveB);
|
||||
$this->assertCount(1, $archiveB);
|
||||
$this->assertListContains([
|
||||
['Title' => '2016'],
|
||||
|
Loading…
Reference in New Issue
Block a user