Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 48a9bcf27662d481b2b955e0ccec87259ae8a58b 1 parent 1722f00
@ajoneil ajoneil authored halkyon committed
View
4 tests/model/SiteTreeTest.php
@@ -39,8 +39,8 @@ static public function set_up_once() {
// 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
2  tests/staticpublisher/FilesystemPublisherTest.php
@@ -23,7 +23,7 @@ public function setUp() {
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'];
Please sign in to comment.
Something went wrong with that request. Please try again.