]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - tests/Wallabag/CoreBundle/Command/ExportCommandTest.php
add filepath test
[github/wallabag/wallabag.git] / tests / Wallabag / CoreBundle / Command / ExportCommandTest.php
index 41491838b330f79c4be1a3dfe6f2e59616a43076..4c66e051c77d56308b427ba67d474f3664620cdb 100644 (file)
@@ -57,4 +57,21 @@ class ExportCommandTest extends WallabagCoreTestCase
 
         $this->assertContains('Exporting 6 entrie(s) for user « admin »... Done', $tester->getDisplay());
     }
+
+    public function testExportCommandWithSpecialPath()
+    {
+        $application = new Application($this->getClient()->getKernel());
+        $application->add(new ExportCommand());
+
+        $command = $application->find('wallabag:export');
+
+        $tester = new CommandTester($command);
+        $tester->execute([
+            'command' => $command->getName(),
+            'username' => 'admin',
+            'filepath' => 'specialexport.json'
+        ]);
+
+        $this->assertFileExists('specialexport.json');
+    }
 }