mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-16 14:48:11 +00:00
Optimise tests and coverage.
This commit is contained in:
@@ -197,7 +197,6 @@ class JobStatusControllerTest extends TestCase
|
||||
$routine = $this->mock(FakeRoutine::class);
|
||||
|
||||
// mock calls:
|
||||
$repository->shouldReceive('setStatus')->once()->withArgs([Mockery::any(), 'running']);
|
||||
$routine->shouldReceive('setImportJob')->once();
|
||||
$routine->shouldReceive('run')->once();
|
||||
|
||||
@@ -227,7 +226,6 @@ class JobStatusControllerTest extends TestCase
|
||||
$routine = $this->mock(FakeRoutine::class);
|
||||
|
||||
// mock calls:
|
||||
$repository->shouldReceive('setStatus')->once()->withArgs([Mockery::any(), 'running']);
|
||||
$repository->shouldReceive('setStatus')->once()->withArgs([Mockery::any(), 'error']);
|
||||
$routine->shouldReceive('setImportJob')->once();
|
||||
$routine->shouldReceive('run')->andThrow(new Exception('Unknown exception'));
|
||||
@@ -258,7 +256,6 @@ class JobStatusControllerTest extends TestCase
|
||||
$routine = $this->mock(FakeRoutine::class);
|
||||
|
||||
// mock calls:
|
||||
$repository->shouldReceive('setStatus')->once()->withArgs([Mockery::any(), 'running']);
|
||||
$repository->shouldReceive('setStatus')->once()->withArgs([Mockery::any(), 'error']);
|
||||
$routine->shouldReceive('setImportJob')->once();
|
||||
$routine->shouldReceive('run')->andThrow(new FireflyException('Unknown exception'));
|
||||
|
||||
Reference in New Issue
Block a user