diff --git a/src/Model/BlogCommentExtension.php b/src/Model/BlogCommentExtension.php
index 8bda704..e8c9d20 100644
--- a/src/Model/BlogCommentExtension.php
+++ b/src/Model/BlogCommentExtension.php
@@ -16,7 +16,7 @@ class BlogCommentExtension extends DataExtension
*/
public function getExtraClass()
{
- $blogPost = $this->owner->getParent();
+ $blogPost = $this->owner->Parent();
if ($blogPost instanceof BlogPost) {
if ($blogPost->isAuthor($this->owner->Author())) {
diff --git a/templates/SilverStripe/Blog/Includes/EntryMeta.ss b/templates/SilverStripe/Blog/Includes/EntryMeta.ss
index ce76bec..2ff61c1 100644
--- a/templates/SilverStripe/Blog/Includes/EntryMeta.ss
+++ b/templates/SilverStripe/Blog/Includes/EntryMeta.ss
@@ -2,14 +2,14 @@
<% if $Categories.exists %>
<%t SilverStripe\\Blog\\Model\\Blog.PostedIn "Posted in" %>
<% loop $Categories %>
- $Title<% if not Last %>, <% else %>;<% end_if %>
+ $Title<% if not $IsLast %>, <% else %>;<% end_if %>
<% end_loop %>
<% end_if %>
<% if $Tags.exists %>
<%t SilverStripe\\Blog\\Model\\Blog.Tagged "Tagged" %>
<% loop $Tags %>
- $Title<% if not Last %>, <% else %>;<% end_if %>
+ $Title<% if not $IsLast %>, <% else %>;<% end_if %>
<% end_loop %>
<% end_if %>
@@ -27,8 +27,8 @@
<%t SilverStripe\\Blog\\Model\\Blog.By "by" %>
<% loop $Credits %>
- <% if not $First && not $Last %>, <% end_if %>
- <% if not $First && $Last %> <%t SilverStripe\\Blog\\Model\\Blog.AND "and" %> <% end_if %>
+ <% if not $IsFirst && not $IsLast %>, <% end_if %>
+ <% if not $IsFirst && $IsLast %> <%t SilverStripe\\Blog\\Model\\Blog.AND "and" %> <% end_if %>
<% if $URLSegment && not $Up.ProfilesDisabled %>
$Name.XML
<% else %>
diff --git a/tests/php/BlogCategoryTest.php b/tests/php/BlogCategoryTest.php
index 321bec5..c189e32 100755
--- a/tests/php/BlogCategoryTest.php
+++ b/tests/php/BlogCategoryTest.php
@@ -80,8 +80,6 @@ class BlogCategoryTest extends FunctionalTest
public function testCanView()
{
- $this->useDraftSite();
-
$this->objFromFixture(Member::class, 'Admin');
$editor = $this->objFromFixture(Member::class, 'Editor');
@@ -95,8 +93,6 @@ class BlogCategoryTest extends FunctionalTest
*/
public function testCanEdit()
{
- $this->useDraftSite();
-
$admin = $this->objFromFixture(Member::class, 'Admin');
$editor = $this->objFromFixture(Member::class, 'Editor');
@@ -118,8 +114,6 @@ class BlogCategoryTest extends FunctionalTest
public function testCanCreate()
{
- $this->useDraftSite();
-
$admin = $this->objFromFixture(Member::class, 'Admin');
$editor = $this->objFromFixture(Member::class, 'Editor');
@@ -131,8 +125,6 @@ class BlogCategoryTest extends FunctionalTest
public function testCanDelete()
{
- $this->useDraftSite();
-
$admin = $this->objFromFixture(Member::class, 'Admin');
$editor = $this->objFromFixture(Member::class, 'Editor');
diff --git a/tests/php/BlogPostTest.php b/tests/php/BlogPostTest.php
index 39e979e..51abc21 100644
--- a/tests/php/BlogPostTest.php
+++ b/tests/php/BlogPostTest.php
@@ -95,7 +95,7 @@ class BlogPostTest extends SapphireTest
$this->assertEquals(7, $blogpost->getCandidateAuthors()->count());
//Set the group to draw Members from
- Config::inst()->update(BlogPost::class, 'restrict_authors_to_group', 'blogusers');
+ Config::inst()->set(BlogPost::class, 'restrict_authors_to_group', 'blogusers');
$this->assertEquals(3, $blogpost->getCandidateAuthors()->count());
diff --git a/tests/php/BlogTagTest.php b/tests/php/BlogTagTest.php
index ca02481..754b338 100755
--- a/tests/php/BlogTagTest.php
+++ b/tests/php/BlogTagTest.php
@@ -73,8 +73,6 @@ class BlogTagTest extends FunctionalTest
*/
public function testCanView()
{
- $this->useDraftSite();
-
$admin = $this->objFromFixture(Member::class, 'Admin');
$editor = $this->objFromFixture(Member::class, 'Editor');
@@ -91,8 +89,6 @@ class BlogTagTest extends FunctionalTest
public function testCanEdit()
{
- $this->useDraftSite();
-
$admin = $this->objFromFixture(Member::class, 'Admin');
$editor = $this->objFromFixture(Member::class, 'Editor');
@@ -114,8 +110,6 @@ class BlogTagTest extends FunctionalTest
public function testCanCreate()
{
- $this->useDraftSite();
-
$admin = $this->objFromFixture(Member::class, 'Admin');
$editor = $this->objFromFixture(Member::class, 'Editor');
@@ -127,8 +121,6 @@ class BlogTagTest extends FunctionalTest
public function testCanDelete()
{
- $this->useDraftSite();
-
$admin = $this->objFromFixture(Member::class, 'Admin');
$editor = $this->objFromFixture(Member::class, 'Editor');
diff --git a/tests/php/BlogTest.php b/tests/php/BlogTest.php
index 32ed789..1bfb303 100755
--- a/tests/php/BlogTest.php
+++ b/tests/php/BlogTest.php
@@ -50,12 +50,12 @@ class BlogTest extends SapphireTest
*/
$blog = $this->objFromFixture(Blog::class, 'FirstBlog');
- Config::inst()->update(BlogPost::class, 'show_in_sitetree', true);
+ Config::inst()->set(BlogPost::class, 'show_in_sitetree', true);
$classes = $blog->getExcludedSiteTreeClassNames();
$this->assertNotContains(BlogPost::class, $classes, 'BlogPost class should be hidden.');
- Config::inst()->update(BlogPost::class, 'show_in_sitetree', false);
+ Config::inst()->set(BlogPost::class, 'show_in_sitetree', false);
$classes = $blog->getExcludedSiteTreeClassNames();
$this->assertContains(BlogPost::class, $classes, 'BlogPost class should be hidden.');