diff --git a/tests/php/Control/ControllerTest.php b/tests/php/Control/ControllerTest.php index 6aa8c9cf2..f9265e2c6 100644 --- a/tests/php/Control/ControllerTest.php +++ b/tests/php/Control/ControllerTest.php @@ -2,7 +2,6 @@ namespace SilverStripe\Control\Tests; -use InvalidArgumentException; use SilverStripe\Control\Controller; use SilverStripe\Control\Director; use SilverStripe\Control\Tests\ControllerTest\AccessBaseController; @@ -15,7 +14,6 @@ use SilverStripe\Control\Tests\ControllerTest\IndexSecuredController; use SilverStripe\Control\Tests\ControllerTest\SubController; use SilverStripe\Control\Tests\ControllerTest\TestController; use SilverStripe\Control\Tests\ControllerTest\UnsecuredController; -use SilverStripe\Dev\Deprecation; use SilverStripe\Dev\FunctionalTest; use SilverStripe\Security\Member; use SilverStripe\Security\Security; @@ -47,7 +45,6 @@ class ControllerTest extends FunctionalTest { parent::setUp(); Director::config()->update('alternate_base_url', '/'); - $this->depSettings = Deprecation::dump_settings(); // Add test theme $themeDir = substr(__DIR__, strlen(FRAMEWORK_DIR)) . '/ControllerTest/'; @@ -58,12 +55,6 @@ class ControllerTest extends FunctionalTest SSViewer::set_themes($themes); } - protected function tearDown() - { - Deprecation::restore_settings($this->depSettings); - parent::tearDown(); - } - public function testDefaultAction() { /* For a controller with a template, the default action will simple run that template. */