From b3d2d4c1b1c94cf3a9c96ddaff5646350c69cbd2 Mon Sep 17 00:00:00 2001 From: Dan Hensby Date: Wed, 26 Sep 2018 00:42:59 +0100 Subject: [PATCH] Remove redundant code --- tests/php/Control/CookieTest.php | 10 ---------- 1 file changed, 10 deletions(-) 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 */