Fix tests after moving the settings

This commit is contained in:
Stig Lindqvist 2014-02-19 15:29:21 +13:00
parent 5eba67b3ab
commit 57f08027c7

View File

@ -13,16 +13,16 @@ class SiteTreeContentReviewTest extends FunctionalTest {
$editor = $this->objFromFixture('Member', 'editor'); $editor = $this->objFromFixture('Member', 'editor');
$this->logInAs($editor); $this->logInAs($editor);
$page = new Page(); $page = new Page();
$fields = $page->getCMSFields(); $fields = $page->getSettingsFields();
$this->assertNotNull($fields->fieldByName('Root.Review')); $this->assertNotNull($fields->dataFieldByName('NextReviewDate'));
} }
public function testUserWithoutPermissionCannotEdit() { public function testUserWithoutPermissionCannotEdit() {
$author = $this->objFromFixture('Member', 'author'); $author = $this->objFromFixture('Member', 'author');
$this->logInAs($author); $this->logInAs($author);
$page = new Page(); $page = new Page();
$fields = $page->getCMSFields(); $fields = $page->getSettingsFields();
$this->assertNull($fields->fieldByName('Root.Review')); $this->assertNull($fields->dataFieldByName('NextReviewDate'));
} }
public function testAutomaticallyToNotSetReviewDate() { public function testAutomaticallyToNotSetReviewDate() {