mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
51c8e8639e
See "Static configuration properties are now immutable, you must use Config API." in the 3.1 change log for details.
19 lines
514 B
PHP
19 lines
514 B
PHP
<?php
|
|
/**
|
|
* @package cms
|
|
* @subpackage tests
|
|
*/
|
|
class RootURLControllerTest extends SapphireTest {
|
|
protected static $fixture_file = 'RootURLControllerTest.yml';
|
|
|
|
public function testGetHomepageLink() {
|
|
$default = $this->objFromFixture('Page', 'home');
|
|
|
|
SiteTree::config()->nested_urls = false;
|
|
$this->assertEquals('home', RootURLController::get_homepage_link());
|
|
Config::inst()->update('SiteTree', 'nested_urls', true);
|
|
$this->assertEquals('home', RootURLController::get_homepage_link());
|
|
}
|
|
|
|
}
|