Skip to content

Commit

Permalink
Automated linting
Browse files Browse the repository at this point in the history
  • Loading branch information
robbieaverill committed May 4, 2018
1 parent cc064c4 commit adc0395
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Model/Subsite.php
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ public function onAfterWrite()
parent::onAfterWrite();
}

/**
/**
* Automatically create default pages for new subsites
*/
protected function createDefaultPages()
Expand Down
10 changes: 5 additions & 5 deletions tests/php/SubsiteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -475,13 +475,13 @@ public function testDuplicateSubsite()
}

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

0 comments on commit adc0395

Please sign in to comment.