Merge pull request #6803 from yguedidi/ensure-the-kernel-is-shut-down-before-calling-createclient

Ensure the kernel is shut down before calling createClient
This commit is contained in:
Kevin Decherf 2023-08-08 16:51:44 +02:00 committed by GitHub
commit ed17e61db2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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