mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
Removed use of deprecated Object::get_static()
This commit is contained in:
parent
c9d5627e9f
commit
3848f90a5a
@ -52,7 +52,7 @@ class SiteTreeSubsitesTest extends BaseSubsiteTest {
|
||||
Subsite::changeSubsite($subsite1->ID);
|
||||
$path = ErrorPage::get_filepath_for_errorcode(500);
|
||||
|
||||
$static_path = Object::get_static('ErrorPage', 'static_filepath');
|
||||
$static_path = Config::inst()->get('ErrorPage', 'static_filepath');
|
||||
$expected_path = $static_path . '/error-500-'.$subsite1->domain().'.html';
|
||||
$this->assertEquals($expected_path, $path);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user