@@ -134,39 +134,6 @@ public function testWith()
134134 $ this ->assertArrayHasKey ('foo ' , $ _SESSION );
135135 }
136136
137- public function testRedirectWithQueryIncludesAllVars ()
138- {
139- $ this ->request ->uri ->setQueryArray (['foo ' => 'bar ' , 'bar ' => 'baz ' ]);
140- $ response = new RedirectResponse (new App ());
141-
142- $ response = $ response ->to ('http://example.com/foo ' )->withQuery ();
143-
144- $ this ->assertTrue ($ response ->hasHeader ('Location ' ));
145- $ this ->assertEquals ('http://example.com/foo?foo=bar&bar=baz ' , $ response ->getHeaderLine ('Location ' ));
146- }
147-
148- public function testRedirectWithQueryExcept ()
149- {
150- $ this ->request ->uri ->setQueryArray (['foo ' => 'bar ' , 'bar ' => 'baz ' ]);
151- $ response = new RedirectResponse (new App ());
152-
153- $ response = $ response ->to ('http://example.com/foo ' )->withQuery (['except ' => 'foo ' ]);
154-
155- $ this ->assertTrue ($ response ->hasHeader ('Location ' ));
156- $ this ->assertEquals ('http://example.com/foo?bar=baz ' , $ response ->getHeaderLine ('Location ' ));
157- }
158-
159- public function testRedirectWithQueryOnly ()
160- {
161- $ this ->request ->uri ->setQueryArray (['foo ' => 'bar ' , 'bar ' => 'baz ' ]);
162- $ response = new RedirectResponse (new App ());
163-
164- $ response = $ response ->to ('http://example.com/foo ' )->withQuery (['only ' => 'foo ' ]);
165-
166- $ this ->assertTrue ($ response ->hasHeader ('Location ' ));
167- $ this ->assertEquals ('http://example.com/foo?foo=bar ' , $ response ->getHeaderLine ('Location ' ));
168- }
169-
170137 /**
171138 * @runInSeparateProcess
172139 * @preserveGlobalState disabled
@@ -178,7 +145,7 @@ public function testRedirectBack()
178145 Services::injectMock ('request ' , $ this ->request );
179146
180147 $ response = new RedirectResponse (new App ());
181-
148+
182149 $ returned = $ response ->back ();
183150 $ this ->assertEquals ('http://somewhere.com ' , $ returned ->getHeader ('location ' )->getValue ());
184151 }
0 commit comments