Code formatting

This commit is contained in:
Dan Hensby 2018-09-26 00:43:12 +01:00
parent b3d2d4c1b1
commit 3a007d52e6
No known key found for this signature in database
GPG Key ID: 3906B235643EF10B
2 changed files with 11 additions and 11 deletions

View File

@ -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',
) )
); );

View File

@ -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');