forked from wallabag/wallabag
Upgrade to Symfony 4.4
- disable autowiring for Event (because the Entry entity was injected) - rename `getClient()` for test to `getTestClient()` to avoid error while overriding (from `BrowserKitAssertionsTrait`)
This commit is contained in:
@ -16,7 +16,7 @@ class ShowUserCommandTest extends WallabagCoreTestCase
|
||||
$this->expectException(RuntimeException::class);
|
||||
$this->expectExceptionMessage('Not enough arguments');
|
||||
|
||||
$application = new Application($this->getClient()->getKernel());
|
||||
$application = new Application($this->getTestClient()->getKernel());
|
||||
|
||||
$command = $application->find('wallabag:user:show');
|
||||
|
||||
@ -26,7 +26,7 @@ class ShowUserCommandTest extends WallabagCoreTestCase
|
||||
|
||||
public function testRunShowUserCommandWithBadUsername()
|
||||
{
|
||||
$application = new Application($this->getClient()->getKernel());
|
||||
$application = new Application($this->getTestClient()->getKernel());
|
||||
|
||||
$command = $application->find('wallabag:user:show');
|
||||
|
||||
@ -40,7 +40,7 @@ class ShowUserCommandTest extends WallabagCoreTestCase
|
||||
|
||||
public function testRunShowUserCommandForUser()
|
||||
{
|
||||
$application = new Application($this->getClient()->getKernel());
|
||||
$application = new Application($this->getTestClient()->getKernel());
|
||||
|
||||
$command = $application->find('wallabag:user:show');
|
||||
|
||||
@ -58,7 +58,7 @@ class ShowUserCommandTest extends WallabagCoreTestCase
|
||||
|
||||
public function testShowUser()
|
||||
{
|
||||
$client = $this->getClient();
|
||||
$client = $this->getTestClient();
|
||||
$em = $client->getContainer()->get(EntityManagerInterface::class);
|
||||
|
||||
$this->logInAs('admin');
|
||||
@ -71,7 +71,7 @@ class ShowUserCommandTest extends WallabagCoreTestCase
|
||||
|
||||
$em->flush();
|
||||
|
||||
$application = new Application($this->getClient()->getKernel());
|
||||
$application = new Application($this->getTestClient()->getKernel());
|
||||
|
||||
$command = $application->find('wallabag:user:show');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user