mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 06:05:56 +00:00
APICHANGE: Use late static binding for Object::remove_extension()
This commit is contained in:
parent
1722f00869
commit
48a9bcf276
@ -39,8 +39,8 @@ class SiteTreeTest extends SapphireTest {
|
|||||||
|
|
||||||
// refresh the extended statics - different fields in $db with Translatable enabled
|
// refresh the extended statics - different fields in $db with Translatable enabled
|
||||||
if(self::$origTranslatableSettings['has_extension']) {
|
if(self::$origTranslatableSettings['has_extension']) {
|
||||||
Object::remove_extension('SiteTree', 'Translatable');
|
SiteTree::remove_extension('Translatable');
|
||||||
Object::remove_extension('SiteConfig', 'Translatable');
|
SiteConfig::remove_extension('Translatable');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ class FilesystemPublisherTest extends SapphireTest {
|
|||||||
public function tearDown() {
|
public function tearDown() {
|
||||||
parent::tearDown();
|
parent::tearDown();
|
||||||
|
|
||||||
Object::remove_extension("SiteTree", "FilesystemPublisher('assets/FilesystemPublisherTest-static-folder/')");
|
SiteTree::remove_extension("FilesystemPublisher('assets/FilesystemPublisherTest-static-folder/')");
|
||||||
|
|
||||||
FilesystemPublisher::$domain_based_caching = $this->orig['domain_based_caching'];
|
FilesystemPublisher::$domain_based_caching = $this->orig['domain_based_caching'];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user