aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Wallabag
diff options
context:
space:
mode:
authorNicolas Hart <contact@nclshart.net>2017-07-30 22:04:29 +0200
committerNicolas Hart <contact@nclshart.net>2017-07-30 22:04:29 +0200
commitaf31cfed769538fcb7d283cb1fad80ac8d07b663 (patch)
tree61117d2944479a9aa814369091991328350ca07d /tests/Wallabag
parent882da5c5eb283cbc7a869182b26a69b8fbebda2b (diff)
downloadwallabag-af31cfed769538fcb7d283cb1fad80ac8d07b663.tar.gz
wallabag-af31cfed769538fcb7d283cb1fad80ac8d07b663.tar.zst
wallabag-af31cfed769538fcb7d283cb1fad80ac8d07b663.zip
Add list user command
Diffstat (limited to 'tests/Wallabag')
-rw-r--r--tests/Wallabag/CoreBundle/Command/ListUserCommandTest.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/Wallabag/CoreBundle/Command/ListUserCommandTest.php b/tests/Wallabag/CoreBundle/Command/ListUserCommandTest.php
new file mode 100644
index 00000000..5e644247
--- /dev/null
+++ b/tests/Wallabag/CoreBundle/Command/ListUserCommandTest.php
@@ -0,0 +1,26 @@
1<?php
2
3namespace Tests\Wallabag\CoreBundle\Command;
4
5use Symfony\Bundle\FrameworkBundle\Console\Application;
6use Symfony\Component\Console\Tester\CommandTester;
7use Tests\Wallabag\CoreBundle\WallabagCoreTestCase;
8use Wallabag\CoreBundle\Command\ListUserCommand;
9
10class ListUserCommandTest extends WallabagCoreTestCase
11{
12 public function testRunListUserCommand()
13 {
14 $application = new Application($this->getClient()->getKernel());
15 $application->add(new ListUserCommand());
16
17 $command = $application->find('wallabag:user:list');
18
19 $tester = new CommandTester($command);
20 $tester->execute([
21 'command' => $command->getName(),
22 ]);
23
24 $this->assertContains('3 user(s) displayed.', $tester->getDisplay());
25 }
26}