fix tests

some classes have changed, fix it
This commit is contained in:
2017-08-29 17:00:32 +02:00
parent 54fbaa8c0d
commit f5de2d8049
4 changed files with 15 additions and 12 deletions

View File

@@ -126,7 +126,7 @@ class PersonAddressControllerTest extends WebTestCase
$this->assertTrue($this->client->getResponse()->isSuccessful());
// get the form and populate the most obvious fields (postcode will come later)
$form = $crawler->selectButton('Envoi')->form(array(
$form = $crawler->filter('.bt-create')->form(array(
'address[streetAddress1]' => 'Rue de la Paix, 50',
'address[streetAddress2]' => $this->postalCode->getId(),
'address[validFrom]' => '15-01-2016'
@@ -167,7 +167,7 @@ class PersonAddressControllerTest extends WebTestCase
$this->assertTrue($this->client->getResponse()->isSuccessful());
$form = $crawler->selectButton('Envoi')->form(array(
$form = $crawler->filter('.bt-save')->form(array(
'address[streetAddress1]' => 'Rue du Trou Normand, 15',
'address[validFrom]' => '15-01-2015'
));