mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
Remove deprecation linked to kernel shutdown
This commit is contained in:
@@ -19,6 +19,7 @@ use Chill\PersonBundle\Entity\Person;
|
||||
use DateTime;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use Iterator;
|
||||
use Symfony\Bundle\FrameworkBundle\KernelBrowser;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
use function array_pop;
|
||||
use function count;
|
||||
@@ -32,13 +33,18 @@ final class AccompanyingCourseControllerTest extends WebTestCase
|
||||
{
|
||||
use PrepareClientTrait;
|
||||
|
||||
private KernelBrowser $client;
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
self::bootKernel();
|
||||
$this->client = $this->getClientAuthenticated();
|
||||
}
|
||||
|
||||
protected function tearDown(): void
|
||||
{
|
||||
self::ensureKernelShutdown();
|
||||
}
|
||||
|
||||
public function dataGenerateRandomUsers(): Iterator
|
||||
{
|
||||
self::bootKernel();
|
||||
@@ -61,6 +67,8 @@ final class AccompanyingCourseControllerTest extends WebTestCase
|
||||
->getScalarResult();
|
||||
|
||||
yield [array_pop($personIds), array_pop($personIds)];
|
||||
|
||||
self::ensureKernelShutdown();
|
||||
}
|
||||
|
||||
public function testNewWithoutUsers()
|
||||
|
Reference in New Issue
Block a user