Force again the kernel to shutdown before creating the client

This commit is contained in:
Julien Fastré 2023-09-13 11:45:01 +02:00
parent fc7cfb1760
commit b93a822299
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -65,6 +65,7 @@ final class AsideActivityControllerTest extends WebTestCase
*/ */
public function testEditWithoutUsers(int $asideActivityId) public function testEditWithoutUsers(int $asideActivityId)
{ {
self::ensureKernelShutdown();
$client = $this->getClientAuthenticated(); $client = $this->getClientAuthenticated();
$client->request('GET', "/fr/asideactivity/{$asideActivityId}/edit"); $client->request('GET', "/fr/asideactivity/{$asideActivityId}/edit");
@ -73,6 +74,7 @@ final class AsideActivityControllerTest extends WebTestCase
public function testIndexWithoutUsers() public function testIndexWithoutUsers()
{ {
self::ensureKernelShutdown();
$client = $this->getClientAuthenticated(); $client = $this->getClientAuthenticated();
$client->request('GET', '/fr/asideactivity'); $client->request('GET', '/fr/asideactivity');
@ -81,6 +83,7 @@ final class AsideActivityControllerTest extends WebTestCase
public function testNewWithoutUsers() public function testNewWithoutUsers()
{ {
self::ensureKernelShutdown();
$client = $this->getClientAuthenticated(); $client = $this->getClientAuthenticated();
$client->request('GET', '/fr/asideactivity/new'); $client->request('GET', '/fr/asideactivity/new');