mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02: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
|
||||
if(self::$origTranslatableSettings['has_extension']) {
|
||||
Object::remove_extension('SiteTree', 'Translatable');
|
||||
Object::remove_extension('SiteConfig', 'Translatable');
|
||||
SiteTree::remove_extension('Translatable');
|
||||
SiteConfig::remove_extension('Translatable');
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -23,7 +23,7 @@ class FilesystemPublisherTest extends SapphireTest {
|
||||
public function 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'];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user