Update references to text fixtures and SS_List class namespace from cherry-picked SilverStripe 3 commit

This commit is contained in:
Robbie Averill 2019-05-13 09:18:27 +12:00
parent 3d9031aaac
commit 98183ad677

View File

@ -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'],