Remove deprecation linked to kernel shutdown

This commit is contained in:
2023-08-31 18:36:37 +02:00
parent 7c58880139
commit 6f11dffcbd
23 changed files with 166 additions and 85 deletions

View File

@@ -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();
}
/**