Permalink
Browse files

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

  • Loading branch information...
1 parent 1722f00 commit 48a9bcf27662d481b2b955e0ccec87259ae8a58b @andrewandante andrewandante committed with halkyon Oct 9, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 tests/model/SiteTreeTest.php
  2. +1 −1 tests/staticpublisher/FilesystemPublisherTest.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');
}
}
@@ -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'];

0 comments on commit 48a9bcf

Please sign in to comment.