mirror of
https://github.com/silverstripe/silverstripe-contentreview
synced 2024-10-22 17:05:47 +02:00
Fix tests after moving the settings
This commit is contained in:
parent
5eba67b3ab
commit
57f08027c7
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user