Fix some tests

This commit is contained in:
2023-12-14 21:18:00 +01:00
parent d5476df14c
commit 2dd1b7c943
11 changed files with 92 additions and 127 deletions

View File

@@ -61,11 +61,6 @@ final class LoginControllerTest extends WebTestCase
$client->click($crawler->selectLink('Se déconnecter')->link());
$this->assertTrue($client->getResponse()->isRedirect());
$client->followRedirect(); // redirect to login page
// check we are back on login page
$this->assertMatchesRegularExpression('/\/login$/', $client->getResponse()
->headers
->get('location'));
$this->assertResponseRedirects('http://localhost/');
}
}