aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Wallabag
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Wallabag')
-rw-r--r--tests/Wallabag/CoreBundle/Command/ExportCommandTest.php17
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}