@@ -132,9 +132,6 @@ public function testUserHashUserWithSession($arg, $options)
132
132
$ cookieString = "PHPSESSID= $ sessionId1; foo=bar; PHPSESSIDsdiuhsdf4535d4f= $ sessionId2 " ;
133
133
$ request = Request::create ('/foo ' , 'GET ' , array (), $ cookies , array (), array ('Cookie ' => $ cookieString ));
134
134
135
- // Add a cookie which should not be available in the eventual hash request anymore
136
- $ request ->cookies ->set ('foo ' , 'bar ' );
137
-
138
135
$ hashRequest = Request::create ($ options ['user_hash_uri ' ], $ options ['user_hash_method ' ], array (), array (), array (), $ request ->server ->all ());
139
136
$ hashRequest ->attributes ->set ('internalRequest ' , true );
140
137
$ hashRequest ->headers ->set ('Accept ' , $ options ['user_hash_accept_header ' ]);
@@ -188,10 +185,8 @@ public function testUserHashUserWithAuthorizationHeader($arg, $options)
188
185
{
189
186
$ userContextSubscriber = new UserContextSubscriber ($ arg );
190
187
191
- $ request = Request::create ('/foo ' , 'GET ' , array (), array (), array (), array ('HTTP_AUTHORIZATION ' => 'foo ' ));
192
-
193
- // Add a cookie which should not be available in the eventual hash request anymore
194
- $ request ->cookies ->set ('foo ' , 'bar ' );
188
+ // The foo cookie should not be available in the eventual hash request anymore
189
+ $ request = Request::create ('/foo ' , 'GET ' , array (), array ('foo ' => 'bar ' ), array (), array ('HTTP_AUTHORIZATION ' => 'foo ' ));
195
190
196
191
$ hashRequest = Request::create ($ options ['user_hash_uri ' ], $ options ['user_hash_method ' ], array (), array (), array (), $ request ->server ->all ());
197
192
$ hashRequest ->attributes ->set ('internalRequest ' , true );
0 commit comments