Skip to content

Commit 6c734b2

Browse files
committed
Merge remote-tracking branch 'mainline/develop' into MQE-2601
2 parents 4d090ef + 9277129 commit 6c734b2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

ReCaptchaUser/Test/Integration/LoginFormTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,11 @@ private function checkSuccessfulGetResponse($shouldContainReCaptcha = false): vo
179179
$this->getRequest()->setUri($this->backendUrl->getUrl('admin'));
180180

181181
$this->dispatch('backend/admin/auth/login');
182+
183+
if ($this->getResponse()->getHeader('Location')) {
184+
$this->dispatch($this->getResponse()->getHeader('Location')->uri()->getPath());
185+
}
186+
182187
$content = $this->getResponse()->getBody();
183188

184189
self::assertNotEmpty($content);

TwoFactorAuth/Test/Integration/ControllerActionPredispatchTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function testUnauthenticated(): void
9191
$this->dispatch('backend/admin/index/index');
9292
//Login controller redirects to full start-up URL
9393
$this->assertRedirect($this->stringContains('index'));
94-
$properUrl = $this->getResponse()->getHeader('Location')->getFieldValue();
94+
$properUrl = $this->getResponse()->getHeader('Location')->uri()->getPath();
9595

9696
//Login page must be rendered without redirects
9797
$this->getRequest()->setDispatched(false);

0 commit comments

Comments
 (0)