aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorJérémy Benoist <j0k3r@users.noreply.github.com>2017-07-30 08:31:04 +0200
committerGitHub <noreply@github.com>2017-07-30 08:31:04 +0200
commit882da5c5eb283cbc7a869182b26a69b8fbebda2b (patch)
treeaae7d4b497a77a1b2eeb5b82c1a0f2d56865e64b /tests
parent4fc7eba34904a062cddf1e61956c48f27cb2e06c (diff)
parente1b33efb3dd7c9ebb4dcfb23a2ca5efbda0a05f6 (diff)
downloadwallabag-882da5c5eb283cbc7a869182b26a69b8fbebda2b.tar.gz
wallabag-882da5c5eb283cbc7a869182b26a69b8fbebda2b.tar.zst
wallabag-882da5c5eb283cbc7a869182b26a69b8fbebda2b.zip
Merge pull request #3297 from nclsHart/commands-better-rendering
Better rendering for all core commands
Diffstat (limited to 'tests')
-rw-r--r--tests/Wallabag/CoreBundle/Command/ExportCommandTest.php3
-rw-r--r--tests/Wallabag/CoreBundle/Command/ShowUserCommandTest.php8
-rw-r--r--tests/Wallabag/CoreBundle/Command/TagAllCommandTest.php3
3 files changed, 8 insertions, 6 deletions
diff --git a/tests/Wallabag/CoreBundle/Command/ExportCommandTest.php b/tests/Wallabag/CoreBundle/Command/ExportCommandTest.php
index 25de2730..210b2ab6 100644
--- a/tests/Wallabag/CoreBundle/Command/ExportCommandTest.php
+++ b/tests/Wallabag/CoreBundle/Command/ExportCommandTest.php
@@ -55,7 +55,8 @@ class ExportCommandTest extends WallabagCoreTestCase
55 'username' => 'admin', 55 'username' => 'admin',
56 ]); 56 ]);
57 57
58 $this->assertContains('Exporting 5 entrie(s) for user « admin »... Done', $tester->getDisplay()); 58 $this->assertContains('Exporting 5 entrie(s) for user admin...', $tester->getDisplay());
59 $this->assertContains('Done', $tester->getDisplay());
59 $this->assertFileExists('admin-export.json'); 60 $this->assertFileExists('admin-export.json');
60 } 61 }
61 62
diff --git a/tests/Wallabag/CoreBundle/Command/ShowUserCommandTest.php b/tests/Wallabag/CoreBundle/Command/ShowUserCommandTest.php
index c0a4acfa..9b34f2a0 100644
--- a/tests/Wallabag/CoreBundle/Command/ShowUserCommandTest.php
+++ b/tests/Wallabag/CoreBundle/Command/ShowUserCommandTest.php
@@ -56,9 +56,9 @@ class ShowUserCommandTest extends WallabagCoreTestCase
56 'username' => 'admin', 56 'username' => 'admin',
57 ]); 57 ]);
58 58
59 $this->assertContains('Username : admin', $tester->getDisplay()); 59 $this->assertContains('Username: admin', $tester->getDisplay());
60 $this->assertContains('Email : bigboss@wallabag.org', $tester->getDisplay()); 60 $this->assertContains('Email: bigboss@wallabag.org', $tester->getDisplay());
61 $this->assertContains('Display name : Big boss', $tester->getDisplay()); 61 $this->assertContains('Display name: Big boss', $tester->getDisplay());
62 $this->assertContains('2FA activated: no', $tester->getDisplay()); 62 $this->assertContains('2FA activated: no', $tester->getDisplay());
63 } 63 }
64 64
@@ -88,6 +88,6 @@ class ShowUserCommandTest extends WallabagCoreTestCase
88 'username' => 'admin', 88 'username' => 'admin',
89 ]); 89 ]);
90 90
91 $this->assertContains('Display name : Bug boss', $tester->getDisplay()); 91 $this->assertContains('Display name: Bug boss', $tester->getDisplay());
92 } 92 }
93} 93}
diff --git a/tests/Wallabag/CoreBundle/Command/TagAllCommandTest.php b/tests/Wallabag/CoreBundle/Command/TagAllCommandTest.php
index 96d0e91f..b1e56a10 100644
--- a/tests/Wallabag/CoreBundle/Command/TagAllCommandTest.php
+++ b/tests/Wallabag/CoreBundle/Command/TagAllCommandTest.php
@@ -55,6 +55,7 @@ class TagAllCommandTest extends WallabagCoreTestCase
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...', $tester->getDisplay());
59 $this->assertContains('Done', $tester->getDisplay());
59 } 60 }
60} 61}