3 namespace Tests\Wallabag\CoreBundle\Command
;
5 use Symfony\Bundle\FrameworkBundle\Console\Application
;
6 use Symfony\Component\Console\Tester\CommandTester
;
7 use Tests\Wallabag\CoreBundle\WallabagCoreTestCase
;
8 use Wallabag\CoreBundle\Command\ListUserCommand
;
10 class ListUserCommandTest
extends WallabagCoreTestCase
12 public function testRunListUserCommand()
14 $application = new Application($this->getClient()->getKernel());
15 $application->add(new ListUserCommand());
17 $command = $application->find('wallabag:user:list');
19 $tester = new CommandTester($command);
21 'command' => $command->getName(),
24 $this->assertContains('3 user(s) displayed.', $tester->getDisplay());