diff --git a/tests/php/Control/CookieTest.php b/tests/php/Control/CookieTest.php index 072fa2c76..bc771d99a 100644 --- a/tests/php/Control/CookieTest.php +++ b/tests/php/Control/CookieTest.php @@ -10,22 +10,12 @@ use SilverStripe\Control\Cookie; class CookieTest extends SapphireTest { - private $cookieInst; - protected function setUp() { parent::setUp(); - Injector::nest(); Injector::inst()->registerService(new CookieJar($_COOKIE), 'SilverStripe\\Control\\Cookie_Backend'); } - protected function tearDown() - { - //restore the cookie_backend - Injector::unnest(); - parent::tearDown(); - } - /** * Check a new cookie inst will be loaded with the superglobal by default */