mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-02 13:03:50 +00:00
fix test for editing household metadata
This commit is contained in:
@@ -117,9 +117,13 @@ final class HouseholdControllerTest extends WebTestCase
|
||||
$form['household[waitingForBirthDate]'] = (new \DateTime('today'))
|
||||
->add(new \DateInterval('P1M'))->format('Y-m-d');
|
||||
|
||||
$this->client->followRedirects(false);
|
||||
$this->client->submit($form);
|
||||
|
||||
$this->assertResponseRedirects("/fr/person/household/{$householdId}/summary");
|
||||
$response = $this->client->getResponse();
|
||||
|
||||
self::assertEquals(302, $response->getStatusCode());
|
||||
self::assertEquals("/fr/person/household/{$householdId}/summary", $response->headers->get('Location'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user