Fix createClient() depreciation

This commit is contained in:
Yassine Guedidi
2023-12-24 20:37:54 +01:00
parent a351b0aada
commit babe87c33b
6 changed files with 22 additions and 12 deletions

View File

@ -31,12 +31,22 @@ abstract class WallabagApiTestCase extends WebTestCase
$this->client = $this->createAuthorizedClient();
}
/**
* @return KernelBrowser
*/
protected function createUnauthorizedClient()
{
static::ensureKernelShutdown();
return static::createClient();
}
/**
* @return KernelBrowser
*/
protected function createAuthorizedClient()
{
$client = static::createClient();
$client = $this->createUnauthorizedClient();
$container = $client->getContainer();
/** @var UserManager $userManager */