@@ 145-152 (lines=8) @@ | ||
142 | $this->assertFalse($page->getOptions()); |
|
143 | } |
|
144 | ||
145 | public function testGetOptionObjectFromDeeplyInheritedPage() |
|
146 | { |
|
147 | /** @var Page|SiteTreeContentReview $page */ |
|
148 | $page = $this->objFromFixture(Page::class, "page-3-1-1-1"); |
|
149 | ||
150 | $this->assertEquals("Inherit", $page->ContentReviewType); |
|
151 | $this->assertInstanceOf(SiteConfig::class, $page->getOptions()); |
|
152 | } |
|
153 | ||
154 | public function testGetSettingsObjectFromInheritPage() |
|
155 | { |
|
@@ 167-174 (lines=8) @@ | ||
164 | $this->assertEquals($parentPage->ID, $page->getOptions()->ID); |
|
165 | } |
|
166 | ||
167 | public function testGetSettingsObjectFromInheritedRootPage() |
|
168 | { |
|
169 | /** @var Page|SiteTreeContentReview $page */ |
|
170 | $page = $this->objFromFixture(Page::class, "inherit"); |
|
171 | ||
172 | $this->assertEquals("Inherit", $page->ContentReviewType); |
|
173 | $this->assertEquals($this->objFromFixture(SiteConfig::class, "default")->ID, $page->getOptions()->ID); |
|
174 | } |
|
175 | ||
176 | public function testGetNextReviewDateFromCustomSettings() |
|
177 | { |