File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
ReCaptchaUser/Test/Integration
TwoFactorAuth/Test/Integration Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -179,6 +179,11 @@ private function checkSuccessfulGetResponse($shouldContainReCaptcha = false): vo
179
179
$ this ->getRequest ()->setUri ($ this ->backendUrl ->getUrl ('admin ' ));
180
180
181
181
$ this ->dispatch ('backend/admin/auth/login ' );
182
+
183
+ if ($ this ->getResponse ()->getHeader ('Location ' )) {
184
+ $ this ->dispatch ($ this ->getResponse ()->getHeader ('Location ' )->uri ()->getPath ());
185
+ }
186
+
182
187
$ content = $ this ->getResponse ()->getBody ();
183
188
184
189
self ::assertNotEmpty ($ content );
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ public function testUnauthenticated(): void
91
91
$ this ->dispatch ('backend/admin/index/index ' );
92
92
//Login controller redirects to full start-up URL
93
93
$ this ->assertRedirect ($ this ->stringContains ('index ' ));
94
- $ properUrl = $ this ->getResponse ()->getHeader ('Location ' )->getFieldValue ();
94
+ $ properUrl = $ this ->getResponse ()->getHeader ('Location ' )->uri ()-> getPath ();
95
95
96
96
//Login page must be rendered without redirects
97
97
$ this ->getRequest ()->setDispatched (false );
You can’t perform that action at this time.
0 commit comments