diff options
author | Thomas Citharel <tcit@tcit.fr> | 2017-01-22 13:19:46 +0100 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2017-01-22 13:19:46 +0100 |
commit | a607b7a9c0870bcdfb4b4e7920d20b5ed39f14fe (patch) | |
tree | 58a3b5a58fa6cf1da789862f996aa4151ad10245 /tests/Wallabag | |
parent | 8303b037fb4e64b542f6f755828b999fdf6eebb0 (diff) | |
download | wallabag-a607b7a9c0870bcdfb4b4e7920d20b5ed39f14fe.tar.gz wallabag-a607b7a9c0870bcdfb4b4e7920d20b5ed39f14fe.tar.zst wallabag-a607b7a9c0870bcdfb4b4e7920d20b5ed39f14fe.zip |
add filepath test
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'tests/Wallabag')
-rw-r--r-- | tests/Wallabag/CoreBundle/Command/ExportCommandTest.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/Wallabag/CoreBundle/Command/ExportCommandTest.php b/tests/Wallabag/CoreBundle/Command/ExportCommandTest.php index 41491838..4c66e051 100644 --- a/tests/Wallabag/CoreBundle/Command/ExportCommandTest.php +++ b/tests/Wallabag/CoreBundle/Command/ExportCommandTest.php | |||
@@ -57,4 +57,21 @@ class ExportCommandTest extends WallabagCoreTestCase | |||
57 | 57 | ||
58 | $this->assertContains('Exporting 6 entrie(s) for user « admin »... Done', $tester->getDisplay()); | 58 | $this->assertContains('Exporting 6 entrie(s) for user « admin »... Done', $tester->getDisplay()); |
59 | } | 59 | } |
60 | |||
61 | public function testExportCommandWithSpecialPath() | ||
62 | { | ||
63 | $application = new Application($this->getClient()->getKernel()); | ||
64 | $application->add(new ExportCommand()); | ||
65 | |||
66 | $command = $application->find('wallabag:export'); | ||
67 | |||
68 | $tester = new CommandTester($command); | ||
69 | $tester->execute([ | ||
70 | 'command' => $command->getName(), | ||
71 | 'username' => 'admin', | ||
72 | 'filepath' => 'specialexport.json' | ||
73 | ]); | ||
74 | |||
75 | $this->assertFileExists('specialexport.json'); | ||
76 | } | ||
60 | } | 77 | } |