mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
This fixes the tests.
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
* See the LICENSE file for details.
|
||||
*/
|
||||
use FireflyIII\Export\Processor;
|
||||
use FireflyIII\Models\ExportJob;
|
||||
use FireflyIII\Repositories\ExportJob\ExportJobRepositoryInterface;
|
||||
|
||||
/**
|
||||
@@ -83,6 +84,10 @@ class ExportControllerTest extends TestCase
|
||||
$processor->shouldReceive('exportJournals')->once();
|
||||
$processor->shouldReceive('createZipFile')->once();
|
||||
|
||||
$repository = $this->mock(ExportJobRepositoryInterface::class);
|
||||
$repository->shouldReceive('changeStatus')->andReturn(true);
|
||||
$repository->shouldReceive('findByKey')->andReturn(new ExportJob);
|
||||
|
||||
|
||||
$this->be($this->user());
|
||||
$this->call('post', route('export.export'), $data);
|
||||
|
Reference in New Issue
Block a user