mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
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
This commit is contained in:
parent
2680489318
commit
d1e0c9025e
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user