mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-15 18:57:05 +00:00
add filepath test
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
8303b037fb
commit
a607b7a9c0
2 changed files with 19 additions and 2 deletions
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue