Code consistency and new tests.

This commit is contained in:
James Cole
2018-05-12 15:50:01 +02:00
parent a47da92d81
commit 5bf520b6ed
35 changed files with 1262 additions and 1157 deletions

View File

@@ -178,7 +178,7 @@ class JobConfigurationController extends Controller
Log::debug(sprintf('Going to create class "%s"', $className));
/** @var JobConfigurationInterface $configurator */
$configurator = app($className);
$configurator->setJob($importJob);
$configurator->setImportJob($importJob);
return $configurator;
}

View File

@@ -143,7 +143,7 @@ class JobStatusController extends Controller
/** @var RoutineInterface $routine */
$routine = app($className);
$routine->setJob($importJob);
$routine->setImportJob($importJob);
try {
$routine->run();
} catch (FireflyException|Exception $e) {
@@ -213,7 +213,7 @@ class JobStatusController extends Controller
{
/** @var ImportArrayStorage $storage */
$storage = app(ImportArrayStorage::class);
$storage->setJob($importJob);
$storage->setImportJob($importJob);
try {
$storage->store();
} catch (FireflyException|Exception $e) {