silverstripe-cms/tests/controller/RootURLControllerTest.php
2012-04-15 10:56:40 +12:00

19 lines
471 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());
}
}