mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
fix test for editing household metadata
This commit is contained in:
parent
8700352cf8
commit
e3bd68112e
@ -20,7 +20,7 @@
|
|||||||
<ul class="record_actions sticky-form-buttons">
|
<ul class="record_actions sticky-form-buttons">
|
||||||
<li class="cancel">
|
<li class="cancel">
|
||||||
<a
|
<a
|
||||||
href="{{ chill_path_add_return_path('chill_person_household_members', { 'household_id': household.id }) }}"
|
href="{{ chill_path_add_return_path('chill_person_household_summary', { 'household_id': household.id }) }}"
|
||||||
class="btn btn-cancel"
|
class="btn btn-cancel"
|
||||||
/>
|
/>
|
||||||
{{ 'Cancel'|trans }}
|
{{ 'Cancel'|trans }}
|
||||||
|
@ -117,9 +117,13 @@ final class HouseholdControllerTest extends WebTestCase
|
|||||||
$form['household[waitingForBirthDate]'] = (new \DateTime('today'))
|
$form['household[waitingForBirthDate]'] = (new \DateTime('today'))
|
||||||
->add(new \DateInterval('P1M'))->format('Y-m-d');
|
->add(new \DateInterval('P1M'))->format('Y-m-d');
|
||||||
|
|
||||||
|
$this->client->followRedirects(false);
|
||||||
$this->client->submit($form);
|
$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'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user