mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 19:13:49 +00:00
Remove deprecation linked to kernel shutdown
This commit is contained in:
@@ -14,6 +14,7 @@ namespace Chill\AsideActivityBundle\Tests\Controller;
|
||||
use Chill\AsideActivityBundle\Entity\AsideActivity;
|
||||
use Chill\MainBundle\Test\PrepareClientTrait;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use Symfony\Bundle\FrameworkBundle\KernelBrowser;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
use function array_pop;
|
||||
use function shuffle;
|
||||
@@ -26,10 +27,10 @@ final class AsideActivityControllerTest extends WebTestCase
|
||||
{
|
||||
use PrepareClientTrait;
|
||||
|
||||
private KernelBrowser $client;
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
self::bootKernel();
|
||||
$this->client = $this->getClientAuthenticated();
|
||||
}
|
||||
|
||||
@@ -57,6 +58,8 @@ final class AsideActivityControllerTest extends WebTestCase
|
||||
yield [array_pop($asideActivityIds)['id']];
|
||||
|
||||
yield [array_pop($asideActivityIds)['id']];
|
||||
|
||||
self::ensureKernelShutdown();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user