forked from wallabag/wallabag
Fix createClient() depreciation
This commit is contained in:
@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user