mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MINOR Removed cases where GhostPage was being unset from the tests
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@77384 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
435dea0c76
commit
60ff36ea47
@ -42,7 +42,6 @@ class CMSMainTest extends FunctionalTest {
|
|||||||
return;
|
return;
|
||||||
$classes = ClassInfo::subclassesFor("SiteTree");
|
$classes = ClassInfo::subclassesFor("SiteTree");
|
||||||
array_shift($classes);
|
array_shift($classes);
|
||||||
unset($classes['GhostPage']); //Ghost Pages aren't used anymore
|
|
||||||
|
|
||||||
foreach($classes as $class) {
|
foreach($classes as $class) {
|
||||||
$page = new $class();
|
$page = new $class();
|
||||||
@ -68,7 +67,6 @@ class CMSMainTest extends FunctionalTest {
|
|||||||
function testThatGetCMSFieldsWorksOnEveryPageType() {
|
function testThatGetCMSFieldsWorksOnEveryPageType() {
|
||||||
$classes = ClassInfo::subclassesFor("SiteTree");
|
$classes = ClassInfo::subclassesFor("SiteTree");
|
||||||
array_shift($classes);
|
array_shift($classes);
|
||||||
unset($classes['GhostPage']); //Ghost Pages aren't used anymore
|
|
||||||
|
|
||||||
foreach($classes as $class) {
|
foreach($classes as $class) {
|
||||||
$page = new $class();
|
$page = new $class();
|
||||||
|
Loading…
Reference in New Issue
Block a user