aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Tests/Command/TagAllCommandTest.php
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2016-04-12 11:36:01 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-04-12 12:25:29 +0200
commit4094ea47712efbe58624ff74daeb1f77c9b0edcf (patch)
tree3d2c168092d0208e6ba888de969252a54bf0c6c1 /src/Wallabag/CoreBundle/Tests/Command/TagAllCommandTest.php
parent7eccbda99f16dc39ee01a0c81ab88293e9b268fd (diff)
downloadwallabag-4094ea47712efbe58624ff74daeb1f77c9b0edcf.tar.gz
wallabag-4094ea47712efbe58624ff74daeb1f77c9b0edcf.tar.zst
wallabag-4094ea47712efbe58624ff74daeb1f77c9b0edcf.zip
Convert array + phpDoc
Thanks for https://github.com/thomasbachem/php-short-array-syntax-converter
Diffstat (limited to 'src/Wallabag/CoreBundle/Tests/Command/TagAllCommandTest.php')
-rw-r--r--src/Wallabag/CoreBundle/Tests/Command/TagAllCommandTest.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Wallabag/CoreBundle/Tests/Command/TagAllCommandTest.php b/src/Wallabag/CoreBundle/Tests/Command/TagAllCommandTest.php
index 653c1a93..4f544c1d 100644
--- a/src/Wallabag/CoreBundle/Tests/Command/TagAllCommandTest.php
+++ b/src/Wallabag/CoreBundle/Tests/Command/TagAllCommandTest.php
@@ -21,9 +21,9 @@ class TagAllCommandTest extends WallabagCoreTestCase
21 $command = $application->find('wallabag:tag:all'); 21 $command = $application->find('wallabag:tag:all');
22 22
23 $tester = new CommandTester($command); 23 $tester = new CommandTester($command);
24 $tester->execute(array( 24 $tester->execute([
25 'command' => $command->getName(), 25 'command' => $command->getName(),
26 )); 26 ]);
27 } 27 }
28 28
29 public function testRunTagAllCommandWithBadUsername() 29 public function testRunTagAllCommandWithBadUsername()
@@ -34,10 +34,10 @@ class TagAllCommandTest extends WallabagCoreTestCase
34 $command = $application->find('wallabag:tag:all'); 34 $command = $application->find('wallabag:tag:all');
35 35
36 $tester = new CommandTester($command); 36 $tester = new CommandTester($command);
37 $tester->execute(array( 37 $tester->execute([
38 'command' => $command->getName(), 38 'command' => $command->getName(),
39 'username' => 'unknown', 39 'username' => 'unknown',
40 )); 40 ]);
41 41
42 $this->assertContains('User "unknown" not found', $tester->getDisplay()); 42 $this->assertContains('User "unknown" not found', $tester->getDisplay());
43 } 43 }
@@ -50,10 +50,10 @@ class TagAllCommandTest extends WallabagCoreTestCase
50 $command = $application->find('wallabag:tag:all'); 50 $command = $application->find('wallabag:tag:all');
51 51
52 $tester = new CommandTester($command); 52 $tester = new CommandTester($command);
53 $tester->execute(array( 53 $tester->execute([
54 'command' => $command->getName(), 54 'command' => $command->getName(),
55 'username' => 'admin', 55 'username' => 'admin',
56 )); 56 ]);
57 57
58 $this->assertContains('Tagging entries for user « admin »... Done', $tester->getDisplay()); 58 $this->assertContains('Tagging entries for user « admin »... Done', $tester->getDisplay());
59 } 59 }