@@ -39,7 +39,7 @@ public function testGetKey()
39
39
40
40
public function testAutoLoginReturnsNullWhenNoCookie ()
41
41
{
42
- $ service = $ this ->getService (null , array ('name ' => 'foo ' ));
42
+ $ service = $ this ->getService (null , array ('name ' => 'foo ' , ' path ' => null , ' domain ' => null ));
43
43
44
44
$ this ->assertNull ($ service ->autoLogin (new Request ()));
45
45
}
@@ -49,7 +49,7 @@ public function testAutoLoginReturnsNullWhenNoCookie()
49
49
*/
50
50
public function testAutoLoginThrowsExceptionWhenImplementationDoesNotReturnUserInterface ()
51
51
{
52
- $ service = $ this ->getService (null , array ('name ' => 'foo ' ));
52
+ $ service = $ this ->getService (null , array ('name ' => 'foo ' , ' path ' => null , ' domain ' => null ));
53
53
$ request = new Request ;
54
54
$ request ->cookies ->set ('foo ' , 'foo ' );
55
55
@@ -64,7 +64,7 @@ public function testAutoLoginThrowsExceptionWhenImplementationDoesNotReturnUserI
64
64
65
65
public function testAutoLogin ()
66
66
{
67
- $ service = $ this ->getService (null , array ('name ' => 'foo ' ));
67
+ $ service = $ this ->getService (null , array ('name ' => 'foo ' , ' path ' => null , ' domain ' => null ));
68
68
$ request = new Request ();
69
69
$ request ->cookies ->set ('foo ' , 'foo ' );
70
70
@@ -112,7 +112,7 @@ public function testLoginFail()
112
112
113
113
public function testLoginSuccessIsNotProcessedWhenTokenDoesNotContainUserInterfaceImplementation ()
114
114
{
115
- $ service = $ this ->getService (null , array ('name ' => 'foo ' , 'always_remember_me ' => true ));
115
+ $ service = $ this ->getService (null , array ('name ' => 'foo ' , 'always_remember_me ' => true , ' path ' => null , ' domain ' => null ));
116
116
$ request = new Request ;
117
117
$ response = new Response ;
118
118
$ account = $ this ->getMock ('Symfony\Component\Security\Core\User\UserInterface ' );
@@ -135,7 +135,7 @@ public function testLoginSuccessIsNotProcessedWhenTokenDoesNotContainUserInterfa
135
135
136
136
public function testLoginSuccessIsNotProcessedWhenRememberMeIsNotRequested ()
137
137
{
138
- $ service = $ this ->getService (null , array ('name ' => 'foo ' , 'always_remember_me ' => false , 'remember_me_parameter ' => 'foo ' ));
138
+ $ service = $ this ->getService (null , array ('name ' => 'foo ' , 'always_remember_me ' => false , 'remember_me_parameter ' => 'foo ' , ' path ' => null , ' domain ' => null ));
139
139
$ request = new Request ;
140
140
$ response = new Response ;
141
141
$ account = $ this ->getMock ('Symfony\Component\Security\Core\User\UserInterface ' );
@@ -159,7 +159,7 @@ public function testLoginSuccessIsNotProcessedWhenRememberMeIsNotRequested()
159
159
160
160
public function testLoginSuccessWhenRememberMeAlwaysIsTrue ()
161
161
{
162
- $ service = $ this ->getService (null , array ('name ' => 'foo ' , 'always_remember_me ' => true ));
162
+ $ service = $ this ->getService (null , array ('name ' => 'foo ' , 'always_remember_me ' => true , ' path ' => null , ' domain ' => null ));
163
<
10AEA
code>163 $ request = new Request ;
164
164
$ response = new Response ;
165
165
$ account = $ this ->getMock ('Symfony\Component\Security\Core\User\UserInterface ' );
@@ -184,7 +184,7 @@ public function testLoginSuccessWhenRememberMeAlwaysIsTrue()
184
184
*/
185
185
public function testLoginSuccessWhenRememberMeParameterWithPathIsPositive ($ value )
186
186
{
187
- $ service = $ this ->getService (null , array ('name ' => 'foo ' , 'always_remember_me ' => false , 'remember_me_parameter ' => 'foo[bar] ' ));
187
+ $ service = $ this ->getService (null , array ('name ' => 'foo ' , 'always_remember_me ' => false , 'remember_me_parameter ' => 'foo[bar] ' , ' path ' => null , ' domain ' => null ));
188
188
189
189
$ request = new Request ;
190
190
$ request ->request ->set ('foo ' , array ('bar ' => $ value ));
@@ -211,7 +211,7 @@ public function testLoginSuccessWhenRememberMeParameterWithPathIsPositive($value
211
211
*/
212
212
public function testLoginSuccessWhenRememberMeParameterIsPositive ($ value )
213
213
{
214
- $ service = $ this ->getService (null , array ('name ' => 'foo ' , 'always_remember_me ' => false , 'remember_me_parameter ' => 'foo ' ));
214
+ $ service = $ this ->getService (null , array ('name ' => 'foo ' , 'always_remember_me ' => false , 'remember_me_parameter ' => 'foo ' , ' path ' => null , ' domain ' => null ));
215
215
216
216
$ request = new Request ;
217
217
$ request ->request ->set ('foo ' , $ value );
0 commit comments