mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Code formatting
This commit is contained in:
parent
b3d2d4c1b1
commit
3a007d52e6
@ -66,7 +66,7 @@ class CookieJarTest extends SapphireTest
|
||||
//PHP will replace an incoming COOKIE called 'var.with.dots' to 'var_with_dots'
|
||||
$cookieJar = new CookieJar(
|
||||
array(
|
||||
'var_with_dots' => 'value',
|
||||
'var_with_dots' => 'value',
|
||||
)
|
||||
);
|
||||
|
||||
@ -87,7 +87,7 @@ class CookieJarTest extends SapphireTest
|
||||
//load with a cookie
|
||||
$cookieJar = new CookieJar(
|
||||
array(
|
||||
'cookieExisting' => 'i woz here',
|
||||
'cookieExisting' => 'i woz here',
|
||||
)
|
||||
);
|
||||
|
||||
@ -110,8 +110,8 @@ class CookieJarTest extends SapphireTest
|
||||
//check we can get all cookies
|
||||
$this->assertEquals(
|
||||
array(
|
||||
'cookieExisting' => 'i woz changed',
|
||||
'cookieNew' => 'i am new',
|
||||
'cookieExisting' => 'i woz changed',
|
||||
'cookieNew' => 'i am new',
|
||||
),
|
||||
$cookieJar->getAll()
|
||||
);
|
||||
@ -119,7 +119,7 @@ class CookieJarTest extends SapphireTest
|
||||
//check we can get all original cookies
|
||||
$this->assertEquals(
|
||||
array(
|
||||
'cookieExisting' => 'i woz here',
|
||||
'cookieExisting' => 'i woz here',
|
||||
),
|
||||
$cookieJar->getAll(false)
|
||||
);
|
||||
@ -133,7 +133,7 @@ class CookieJarTest extends SapphireTest
|
||||
//load an existing cookie
|
||||
$cookieJar = new CookieJar(
|
||||
array(
|
||||
'cookieExisting' => 'i woz here',
|
||||
'cookieExisting' => 'i woz here',
|
||||
)
|
||||
);
|
||||
|
||||
|
@ -122,7 +122,7 @@ class CookieTest extends SapphireTest
|
||||
//load with a cookie
|
||||
$cookieJar = new CookieJar(
|
||||
array(
|
||||
'cookieExisting' => 'i woz here',
|
||||
'cookieExisting' => 'i woz here',
|
||||
)
|
||||
);
|
||||
Injector::inst()->registerService($cookieJar, 'SilverStripe\\Control\\Cookie_Backend');
|
||||
@ -146,8 +146,8 @@ class CookieTest extends SapphireTest
|
||||
//check we can get all cookies
|
||||
$this->assertEquals(
|
||||
array(
|
||||
'cookieExisting' => 'i woz changed',
|
||||
'cookieNew' => 'i am new',
|
||||
'cookieExisting' => 'i woz changed',
|
||||
'cookieNew' => 'i am new',
|
||||
),
|
||||
Cookie::get_all()
|
||||
);
|
||||
@ -155,7 +155,7 @@ class CookieTest extends SapphireTest
|
||||
//check we can get all original cookies
|
||||
$this->assertEquals(
|
||||
array(
|
||||
'cookieExisting' => 'i woz here',
|
||||
'cookieExisting' => 'i woz here',
|
||||
),
|
||||
Cookie::get_all(false)
|
||||
);
|
||||
@ -169,7 +169,7 @@ class CookieTest extends SapphireTest
|
||||
//load an existing cookie
|
||||
$cookieJar = new CookieJar(
|
||||
array(
|
||||
'cookieExisting' => 'i woz here',
|
||||
'cookieExisting' => 'i woz here',
|
||||
)
|
||||
);
|
||||
Injector::inst()->registerService($cookieJar, 'SilverStripe\\Control\\Cookie_Backend');
|
||||
|
Loading…
Reference in New Issue
Block a user