mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-04 13:54:59 +00:00
Fix calls to templating service
This commit is contained in:
@@ -16,6 +16,7 @@ use Chill\MainBundle\Test\PrepareClientTrait;
|
||||
use Chill\PersonBundle\Entity\Person;
|
||||
use Closure;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use Symfony\Bundle\FrameworkBundle\KernelBrowser;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
|
||||
/**
|
||||
@@ -30,6 +31,8 @@ final class PersonControllerUpdateTest extends WebTestCase
|
||||
{
|
||||
use PrepareClientTrait;
|
||||
|
||||
private KernelBrowser $client;
|
||||
|
||||
/**
|
||||
* @var string The url using for editing the person's information
|
||||
*/
|
||||
@@ -218,10 +221,13 @@ final class PersonControllerUpdateTest extends WebTestCase
|
||||
);
|
||||
|
||||
$crawler = $this->client->followRedirect();
|
||||
|
||||
self::assertTrue($this->client->getResponse()->isSuccessful());
|
||||
|
||||
$this->assertGreaterThan(
|
||||
0,
|
||||
$crawler->filter('.alert-success')->count(),
|
||||
'a element .success is shown'
|
||||
'an element .alert-success is shown'
|
||||
);
|
||||
|
||||
if ('birthdate' === $field || 'memo' === $field || 'countryOfBirth' === $field || 'nationality' === $field
|
||||
|
Reference in New Issue
Block a user