diff options
author | Nicolas Hart <contact@nclshart.net> | 2017-07-29 00:30:22 +0200 |
---|---|---|
committer | Nicolas Hart <contact@nclshart.net> | 2017-07-29 11:09:02 +0200 |
commit | e1b33efb3dd7c9ebb4dcfb23a2ca5efbda0a05f6 (patch) | |
tree | cc4a14dca4b1d533671c45b871d441308cdee545 /tests | |
parent | 233eb91be4bd381ff48de0a15aff94415a3f2797 (diff) | |
download | wallabag-e1b33efb3dd7c9ebb4dcfb23a2ca5efbda0a05f6.tar.gz wallabag-e1b33efb3dd7c9ebb4dcfb23a2ca5efbda0a05f6.tar.zst wallabag-e1b33efb3dd7c9ebb4dcfb23a2ca5efbda0a05f6.zip |
Better rendering for all core commands
Diffstat (limited to 'tests')
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 | } |