From d1e0c9025eea25b979e7a7a94c8f0eb6cf8c7193 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Wed, 22 Apr 2009 04:23:56 +0000 Subject: [PATCH] BUGFIX Fixed CMSMainTest->testThatGetCMSFieldsWorksOnEveryPageType() - was comparing a string $class with instanceof() instead of comparing the actually created instance git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@74951 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- tests/CMSMainTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/CMSMainTest.php b/tests/CMSMainTest.php index 5fea97a9..80544ba4 100644 --- a/tests/CMSMainTest.php +++ b/tests/CMSMainTest.php @@ -75,7 +75,7 @@ class CMSMainTest extends SapphireTest { foreach($classes as $class) { $page = new $class(); - if($class instanceof TestOnly) continue; + if($page instanceof TestOnly) continue; $page->Title = "Test $class page"; $page->write();