mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-18 02:03:40 +00:00
Code consistency and new tests.
This commit is contained in:
@@ -65,7 +65,7 @@ class FakeRoutineTest extends TestCase
|
||||
|
||||
|
||||
$routine = new FakeRoutine;
|
||||
$routine->setJob($job);
|
||||
$routine->setImportJob($job);
|
||||
try {
|
||||
$routine->run();
|
||||
} catch (FireflyException $e) {
|
||||
@@ -98,10 +98,10 @@ class FakeRoutineTest extends TestCase
|
||||
$repository->shouldReceive('setStage')->withArgs([Mockery::any(), 'final'])->once();
|
||||
$repository->shouldReceive('setTransactions')->withArgs([Mockery::any(), []])->once();
|
||||
$handler->shouldReceive('getTransactions')->once()->andReturn([]);
|
||||
$handler->shouldReceive('setJob')->once();
|
||||
$handler->shouldReceive('setImportJob')->once();
|
||||
|
||||
$routine = new FakeRoutine;
|
||||
$routine->setJob($job);
|
||||
$routine->setImportJob($job);
|
||||
try {
|
||||
$routine->run();
|
||||
} catch (FireflyException $e) {
|
||||
@@ -136,7 +136,7 @@ class FakeRoutineTest extends TestCase
|
||||
|
||||
|
||||
$routine = new FakeRoutine;
|
||||
$routine->setJob($job);
|
||||
$routine->setImportJob($job);
|
||||
try {
|
||||
$routine->run();
|
||||
} catch (FireflyException $e) {
|
||||
|
@@ -63,12 +63,12 @@ class FileRoutineTest extends TestCase
|
||||
$repository->shouldReceive('setStage')->withArgs([Mockery::any(), 'final'])->once();
|
||||
$repository->shouldReceive('setTransactions')->withArgs([Mockery::any(), ['a' => 'b']])->once();
|
||||
$repository->shouldReceive('getConfiguration')->withArgs([Mockery::any()])->once()->andReturn([]);
|
||||
$processor->shouldReceive('setJob')->once();
|
||||
$processor->shouldReceive('setImportJob')->once();
|
||||
$processor->shouldReceive('run')->once()->andReturn(['a' => 'b']);
|
||||
|
||||
|
||||
$routine = new FileRoutine;
|
||||
$routine->setJob($job);
|
||||
$routine->setImportJob($job);
|
||||
try {
|
||||
$routine->run();
|
||||
} catch (FireflyException $e) {
|
||||
|
Reference in New Issue
Block a user