mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
18 lines
470 B
PHP
18 lines
470 B
PHP
<?php
|
|
/**
|
|
* @package cms
|
|
* @subpackage tests
|
|
*/
|
|
class RootURLControllerTest extends SapphireTest {
|
|
static $fixture_file = 'RootURLControllerTest.yml';
|
|
|
|
public function testGetHomepageLink() {
|
|
$default = $this->objFromFixture('Page', 'home');
|
|
|
|
SiteTree::disable_nested_urls();
|
|
$this->assertEquals('home', RootURLController::get_homepage_link());
|
|
SiteTree::enable_nested_urls();
|
|
$this->assertEquals('home', RootURLController::get_homepage_link());
|
|
}
|
|
|
|
} |