mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Publish test widget explicitly
This commit is contained in:
parent
51edd8d620
commit
0c23c78bfa
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user