mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Remove redundant code
This commit is contained in:
parent
db43d57618
commit
b3d2d4c1b1
@ -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
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user