@@ 101-108 (lines=8) @@ | ||
98 | $this->assertEquals(date("Y-m-d", strtotime("now + " . $siteConfig->ReviewPeriodDays . " days")), $page->NextReviewDate); |
|
99 | } |
|
100 | ||
101 | public function testGetSettingsObjectFromCustom() |
|
102 | { |
|
103 | /** @var Page|SiteTreeContentReview $page */ |
|
104 | $page = $this->objFromFixture("Page", "custom"); |
|
105 | ||
106 | $this->assertEquals("Custom", $page->ContentReviewType); |
|
107 | $this->assertEquals($page, $page->getOptions()); |
|
108 | } |
|
109 | ||
110 | public function testGetSettingsObjectFromDisabled() |
|
111 | { |
|
@@ 128-135 (lines=8) @@ | ||
125 | $this->assertFalse($page->getOptions()); |
|
126 | } |
|
127 | ||
128 | public function testGetOptionObjectFromDeeplyInheritedPage() |
|
129 | { |
|
130 | /** @var Page|SiteTreeContentReview $page */ |
|
131 | $page = $this->objFromFixture("Page", "page-3-1-1-1"); |
|
132 | ||
133 | $this->assertEquals("Inherit", $page->ContentReviewType); |
|
134 | $this->assertInstanceOf("SiteConfig", $page->getOptions()); |
|
135 | } |
|
136 | ||
137 | public function testGetSettingsObjectFromInheritPage() |
|
138 | { |