| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function testGetHomepageLink() |
||
| 15 | { |
||
| 16 | $default = $this->objFromFixture(SiteTree::class, 'home'); |
||
|
|
|||
| 17 | |||
| 18 | Config::modify()->set(SiteTree::class, 'nested_urls', false); |
||
| 19 | $this->assertEquals('home', RootURLController::get_homepage_link()); |
||
| 20 | Config::modify()->set(SiteTree::class, 'nested_urls', true); |
||
| 21 | $this->assertEquals('home', RootURLController::get_homepage_link()); |
||
| 22 | } |
||
| 24 |