Remove useless command addition

This commit is contained in:
Yassine Guedidi
2022-09-03 02:20:24 +02:00
committed by Jérémy Benoist
parent 39cd51a3f9
commit 6915a92047
10 changed files with 0 additions and 54 deletions

View File

@ -9,7 +9,6 @@ use Symfony\Component\Config\Definition\Exception\Exception;
use Symfony\Component\Console\Exception\RuntimeException;
use Symfony\Component\Console\Tester\CommandTester;
use Tests\Wallabag\CoreBundle\WallabagCoreTestCase;
use Wallabag\ImportBundle\Command\RedisWorkerCommand;
class RedisWorkerCommandTest extends WallabagCoreTestCase
{
@ -19,7 +18,6 @@ class RedisWorkerCommandTest extends WallabagCoreTestCase
$this->expectExceptionMessage('Not enough arguments (missing: "serviceName")');
$application = new Application($this->getClient()->getKernel());
$application->add(new RedisWorkerCommand());
$command = $application->find('wallabag:import:redis-worker');
@ -35,7 +33,6 @@ class RedisWorkerCommandTest extends WallabagCoreTestCase
$this->expectExceptionMessage('No queue or consumer found for service name');
$application = new Application($this->getClient()->getKernel());
$application->add(new RedisWorkerCommand());
$command = $application->find('wallabag:import:redis-worker');
@ -49,7 +46,6 @@ class RedisWorkerCommandTest extends WallabagCoreTestCase
public function testRunRedisWorkerCommand()
{
$application = new Application($this->getClient()->getKernel());
$application->add(new RedisWorkerCommand());
$factory = new RedisMockFactory();
$redisMock = $factory->getAdapter(Client::class, true);