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');
|
||||
$this->logInAs($editor);
|
||||
$page = new Page();
|
||||
$fields = $page->getCMSFields();
|
||||
$this->assertNotNull($fields->fieldByName('Root.Review'));
|
||||
$fields = $page->getSettingsFields();
|
||||
$this->assertNotNull($fields->dataFieldByName('NextReviewDate'));
|
||||
}
|
||||
|
||||
public function testUserWithoutPermissionCannotEdit() {
|
||||
$author = $this->objFromFixture('Member', 'author');
|
||||
$this->logInAs($author);
|
||||
$page = new Page();
|
||||
$fields = $page->getCMSFields();
|
||||
$this->assertNull($fields->fieldByName('Root.Review'));
|
||||
$fields = $page->getSettingsFields();
|
||||
$this->assertNull($fields->dataFieldByName('NextReviewDate'));
|
||||
}
|
||||
|
||||
public function testAutomaticallyToNotSetReviewDate() {
|
||||
|
Loading…
Reference in New Issue
Block a user