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