diff --git a/tests/SiteTreePermissionsTest.php b/tests/SiteTreePermissionsTest.php index 815d79b48..bb1834d0b 100755 --- a/tests/SiteTreePermissionsTest.php +++ b/tests/SiteTreePermissionsTest.php @@ -347,6 +347,7 @@ class SiteTreePermissionsTest extends FunctionalTest { // Get the live version of the page $page = Versioned::get_one_by_stage("SiteTree", "Live", "\"SiteTree\".\"ID\" = $pageID"); + $this->assertTrue(is_object($page), 'Versioned::get_one_by_stage() is returning an object'); // subadmin users $subadminuser = $this->objFromFixture('Member', 'subadmin');