APICHANGE: Use late static binding for Object::remove_extension()

This commit is contained in:
Andrew O'Neil 2012-10-10 10:31:05 +13:00 committed by Sean Harvey
parent 1722f00869
commit 48a9bcf276
2 changed files with 3 additions and 3 deletions

View File

@ -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');
}
}

View File

@ -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'];