fix class name in test

This commit is contained in:
Julien Fastré 2021-07-22 17:02:28 +02:00
parent cacc82bec8
commit 25ed89bdaf

View File

@ -152,7 +152,7 @@ class AccompanyingPeriodControllerTest extends WebTestCase
* with : dateClosing: 2015-02-01
* with : the last closing motive in list
* Then the response should redirect to period view
* And the next page should have a `.error` element present in page
* And the next page should have a `.alert-danger` element present in page
*
* @todo
*/
@ -174,7 +174,7 @@ class AccompanyingPeriodControllerTest extends WebTestCase
'/fr/person/'.$this->person->getId().'/accompanying-period'),
'the server redirects to /accompanying-period page');
$this->assertGreaterThan(0, $this->client->followRedirect()
->filter('.success')->count(),
->filter('.alert-success')->count(),
"a 'success' element is shown");
}
@ -186,7 +186,7 @@ class AccompanyingPeriodControllerTest extends WebTestCase
* with : dateClosing: 2014-01-01
* with : the last closing motive in list
* Then the response should redirect to period view
* And the next page should have a `.error` element present in page
* And the next page should have a `.alert-danger` element present in page
*
* @todo
*/
@ -207,8 +207,8 @@ class AccompanyingPeriodControllerTest extends WebTestCase
$this->assertFalse($this->client->getResponse()->isRedirect(),
'the server stays on the /close page');
$this->assertGreaterThan(0, $crawlerResponse
->filter('.error')->count(),
"an '.error' element is shown");
->filter('.alert-danger')->count(),
"an '.alert-danger' element is shown");
}
/**
@ -240,7 +240,7 @@ class AccompanyingPeriodControllerTest extends WebTestCase
'/fr/person/'.$this->person->getId().'/accompanying-period'),
'the server redirects to /accompanying-period page');
$this->assertGreaterThan(0, $this->client->followRedirect()
->filter('.success')->count(),
->filter('.alert-success')->count(),
"a 'success' element is shown");
}
@ -275,7 +275,7 @@ class AccompanyingPeriodControllerTest extends WebTestCase
$this->assertFalse($this->client->getResponse()->isRedirect(),
'the server stay on form page');
$this->assertGreaterThan(0, $crawler->filter('.error')->count(),
$this->assertGreaterThan(0, $crawler->filter('.alert-danger')->count(),
"an 'error' element is shown");
}
@ -310,7 +310,7 @@ class AccompanyingPeriodControllerTest extends WebTestCase
$this->assertFalse($this->client->getResponse()->isRedirect(),
'the server stay on form page');
$this->assertGreaterThan(0, $crawler->filter('.error')->count(),
$this->assertGreaterThan(0, $crawler->filter('.alert-danger')->count(),
"an 'error' element is shown");
}
@ -351,7 +351,7 @@ class AccompanyingPeriodControllerTest extends WebTestCase
$this->assertFalse($this->client->getResponse()->isRedirect(),
'the server stay on form page');
$this->assertGreaterThan(0, $crawlerResponse->filter('.error')->count(),
$this->assertGreaterThan(0, $crawlerResponse->filter('.alert-danger')->count(),
"an 'error' element is shown");
}
@ -382,7 +382,7 @@ class AccompanyingPeriodControllerTest extends WebTestCase
$this->assertFalse($this->client->getResponse()->isRedirect(),
'the server stay on form page');
$this->assertGreaterThan(0, $crawler->filter('.error')->count(),
$this->assertGreaterThan(0, $crawler->filter('.alert-danger')->count(),
"an 'error' element is shown");
}
@ -424,7 +424,7 @@ class AccompanyingPeriodControllerTest extends WebTestCase
$this->assertFalse($this->client->getResponse()->isRedirect(),
'the server stay on form page');
$this->assertGreaterThan(0, $crawlerResponse->filter('.error')->count(),
$this->assertGreaterThan(0, $crawlerResponse->filter('.alert-danger')->count(),
"an 'error' element is shown");
}
@ -465,7 +465,7 @@ class AccompanyingPeriodControllerTest extends WebTestCase
$this->assertFalse($this->client->getResponse()->isRedirect(),
'the server stay on form page');
$this->assertGreaterThan(0, $crawlerResponse->filter('.error')->count(),
$this->assertGreaterThan(0, $crawlerResponse->filter('.alert-danger')->count(),
"an 'error' element is shown");
}