Automated linting

This commit is contained in:
Robbie Averill 2018-05-04 13:57:25 +12:00
parent cc064c43ce
commit adc0395c25
2 changed files with 6 additions and 6 deletions

View File

@ -842,7 +842,7 @@ class Subsite extends DataObject
parent::onAfterWrite();
}
/**
/**
* Automatically create default pages for new subsites
*/
protected function createDefaultPages()

View File

@ -475,13 +475,13 @@ class SubsiteTest extends BaseSubsiteTest
}
public function testDefaultPageCreatedWhenCreatingSubsite()
{
{
$subsite = new Subsite();
$subsite->Title = 'New Subsite';
$subsite->write();
$subsite->activate();
$subsite->activate();
$pages = SiteTree::get();
$this->assertGreaterThanOrEqual(1, $pages->count());
}
$pages = SiteTree::get();
$this->assertGreaterThanOrEqual(1, $pages->count());
}
}