Skip to content

Commit 7bbf2ce

Browse files
committed
Update redirection test after password change
1 parent 1bf9fd1 commit 7bbf2ce

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/Controller/UserControllerTest.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,13 @@ public function testChangePassword(): void
103103
]);
104104

105105
$this->assertResponseRedirects();
106-
$this->assertStringStartsWith(
107-
'/logout',
108-
$client->getResponse()->headers->get('Location') ?? '',
106+
$this->assertResponseRedirects(
107+
'/en/login',
108+
Response::HTTP_FOUND,
109109
'Changing password logout the user.'
110110
);
111+
112+
$client->followRedirect();
113+
$this->assertResponseStatusCodeSame(Response::HTTP_OK);
111114
}
112115
}

0 commit comments

Comments
 (0)