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

@@ -161,7 +161,7 @@ class AccompanyingPeriodControllerTest extends WebTestCase
$crawler = $this->client->request('GET', '/en/person/'
.$this->person->getId().'/accompanying-period/close');
$form = $crawler->selectButton('Submit')->form();
$form = $crawler->selectButton('Close accompanying period')->form();
$form->get(self::CLOSING_MOTIVE_INPUT)
->setValue($this->getLastValueOnClosingMotive($form));
@@ -195,7 +195,7 @@ class AccompanyingPeriodControllerTest extends WebTestCase
$crawler = $this->client->request('GET', '/en/person/'
.$this->person->getId().'/accompanying-period/close');
$form = $crawler->selectButton('Submit')->form();
$form = $crawler->selectButton('Close accompanying period')->form();
$form->get(self::CLOSING_MOTIVE_INPUT)
->setValue($this->getLastValueOnClosingMotive($form));
@@ -226,7 +226,7 @@ class AccompanyingPeriodControllerTest extends WebTestCase
$crawler = $this->client->request('GET', '/en/person/'
.$this->person->getId().'/accompanying-period/create');
$form = $crawler->selectButton('Submit')->form();
$form = $crawler->selectButton('Create an accompanying period')->form();
$form->get(self::CLOSING_MOTIVE_INPUT)
->setValue($this->getLastValueOnClosingMotive($form));
$form->get(self::CLOSING_INPUT)
@@ -260,7 +260,7 @@ class AccompanyingPeriodControllerTest extends WebTestCase
$crawler = $this->client->request('GET', '/en/person/'
.$this->person->getId().'/accompanying-period/create');
$form = $crawler->selectButton('Submit')->form();
$form = $crawler->selectButton('Create an accompanying period')->form();
$form->get(self::CLOSING_MOTIVE_INPUT)
->setValue($this->getLastValueOnClosingMotive($form));
$form->get(self::CLOSING_INPUT)
@@ -292,7 +292,7 @@ class AccompanyingPeriodControllerTest extends WebTestCase
$crawler = $this->client->request('GET', '/en/person/'
.$this->person->getId().'/accompanying-period/create');
$form = $crawler->selectButton('Submit')->form();
$form = $crawler->selectButton('Create an accompanying period')->form();
$form->get(self::CLOSING_MOTIVE_INPUT)
->setValue($this->getLastValueOnClosingMotive($form));
$form->get(self::CLOSING_INPUT)
@@ -333,7 +333,7 @@ class AccompanyingPeriodControllerTest extends WebTestCase
$crawler = $this->client->request('GET', '/en/person/'
.$this->person->getId().'/accompanying-period/create');
$form = $crawler->selectButton('Submit')->form();;
$form = $crawler->selectButton('Create an accompanying period')->form();;
$form->get(self::CLOSING_MOTIVE_INPUT)
->setValue($this->getLastValueOnClosingMotive($form));
$form->get(self::CLOSING_INPUT)
@@ -364,7 +364,7 @@ class AccompanyingPeriodControllerTest extends WebTestCase
$crawler = $this->client->request('GET', '/en/person/'
.$this->person->getId().'/accompanying-period/create');
$form = $crawler->selectButton('Submit')->form();
$form = $crawler->selectButton('Create an accompanying period')->form();
$form->get(self::CLOSING_MOTIVE_INPUT)
->setValue($this->getLastValueOnClosingMotive($form));
$form->get(self::CLOSING_INPUT)
@@ -406,7 +406,7 @@ class AccompanyingPeriodControllerTest extends WebTestCase
$crawler = $this->client->request('GET', '/en/person/'
.$this->person->getId().'/accompanying-period/create');
$form = $crawler->selectButton('Submit')->form();
$form = $crawler->selectButton('Create an accompanying period')->form();
$form->get(self::CLOSING_MOTIVE_INPUT)
->setValue($this->getLastValueOnClosingMotive($form));
$form->get(self::CLOSING_INPUT)
@@ -447,7 +447,7 @@ class AccompanyingPeriodControllerTest extends WebTestCase
$crawler = $this->client->request('GET', '/en/person/'
.$this->person->getId().'/accompanying-period/create');
$form = $crawler->selectButton('Submit')->form();
$form = $crawler->selectButton('Create an accompanying period')->form();
$form->get(self::CLOSING_MOTIVE_INPUT)
->setValue($this->getLastValueOnClosingMotive($form));
$form->get(self::CLOSING_INPUT)