From 46a38e972f115a785bef0a41cafbaf39666e3d6d Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Tue, 19 Oct 2010 01:25:03 +0000 Subject: [PATCH] MINOR: return a fail instead of an error (from r109382) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112825 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- tests/SiteTreePermissionsTest.php | 1 + 1 file changed, 1 insertion(+) 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');