Implement test of import command.

This commit is contained in:
James Cole
2018-03-30 19:41:16 +02:00
parent 5c4d7734ac
commit 08ff3d8ad0
5 changed files with 392 additions and 77 deletions

View File

@@ -81,8 +81,8 @@ class CreateExportTest extends TestCase
$processor->shouldReceive('createZipFile')->once();
$fakeNews = 'I am a zipfile';
Storage::fake('export');
Storage::disk('export')->put(sprintf('%s.zip', $job->key), $fakeNews);
$output = $this->artisan(
'firefly:create-export',
[