mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
TEST Fix regression in tests from new Versioned exceptions
This commit is contained in:
parent
d392ca72f1
commit
3b14436304
@ -53,8 +53,10 @@ class BlogArchiveWidgetTest extends SapphireTest
|
|||||||
array('Title' => 'August 2017'),
|
array('Title' => 'August 2017'),
|
||||||
), $archive);
|
), $archive);
|
||||||
|
|
||||||
|
if ($original) {
|
||||||
Versioned::reading_stage($original);
|
Versioned::reading_stage($original);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public function testArchiveYearly()
|
public function testArchiveYearly()
|
||||||
{
|
{
|
||||||
@ -91,6 +93,8 @@ class BlogArchiveWidgetTest extends SapphireTest
|
|||||||
|
|
||||||
$this->assertCount(4, $archive, 'Four months are shown in the blog archive list after new post added');
|
$this->assertCount(4, $archive, 'Four months are shown in the blog archive list after new post added');
|
||||||
|
|
||||||
|
if ($original) {
|
||||||
Versioned::reading_stage($original);
|
Versioned::reading_stage($original);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user