Remove redundant code

This commit is contained in:
Dan Hensby 2018-09-26 00:42:59 +01:00
parent db43d57618
commit b3d2d4c1b1
No known key found for this signature in database
GPG Key ID: 3906B235643EF10B

View File

@ -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
*/