mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
Automated linting
This commit is contained in:
parent
cc064c43ce
commit
adc0395c25
@ -842,7 +842,7 @@ class Subsite extends DataObject
|
|||||||
parent::onAfterWrite();
|
parent::onAfterWrite();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Automatically create default pages for new subsites
|
* Automatically create default pages for new subsites
|
||||||
*/
|
*/
|
||||||
protected function createDefaultPages()
|
protected function createDefaultPages()
|
||||||
|
@ -475,13 +475,13 @@ class SubsiteTest extends BaseSubsiteTest
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function testDefaultPageCreatedWhenCreatingSubsite()
|
public function testDefaultPageCreatedWhenCreatingSubsite()
|
||||||
{
|
{
|
||||||
$subsite = new Subsite();
|
$subsite = new Subsite();
|
||||||
$subsite->Title = 'New Subsite';
|
$subsite->Title = 'New Subsite';
|
||||||
$subsite->write();
|
$subsite->write();
|
||||||
$subsite->activate();
|
$subsite->activate();
|
||||||
|
|
||||||
$pages = SiteTree::get();
|
$pages = SiteTree::get();
|
||||||
$this->assertGreaterThanOrEqual(1, $pages->count());
|
$this->assertGreaterThanOrEqual(1, $pages->count());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user