Ensure the kernel is shut down before calling createClient

This commit is contained in:
Yassine Guedidi 2023-08-06 13:48:53 +01:00
parent c2bfc0f359
commit 7d78e2ae06

View file

@ -22,6 +22,8 @@ abstract class WallabagCoreTestCase extends WebTestCase
protected function setUp(): void protected function setUp(): void
{ {
static::ensureKernelShutdown();
parent::setUp(); parent::setUp();
$this->client = static::createClient(); $this->client = static::createClient();
@ -29,6 +31,8 @@ abstract class WallabagCoreTestCase extends WebTestCase
public function getNewClient() public function getNewClient()
{ {
static::ensureKernelShutdown();
return $this->client = static::createClient(); return $this->client = static::createClient();
} }