Publish test widget explicitly

This commit is contained in:
Daniel Hensby 2018-01-10 12:25:23 +00:00
parent 51edd8d620
commit 0c23c78bfa
No known key found for this signature in database
GPG Key ID: B00D1E9767F0B06E

View File

@ -54,6 +54,7 @@ class BlogArchiveWidgetTest extends SapphireTest
$original = Versioned::get_stage();
$this->objFromFixture(BlogPost::class, 'post-b')->publishRecursive();
$this->objFromFixture(BlogArchiveWidget::class, 'archive-monthly')->publishRecursive();
Versioned::set_stage(Versioned::LIVE);
$widget = $this->objFromFixture(BlogArchiveWidget::class, 'archive-monthly');