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();