mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 23:45:10 +00:00
Optimise tests and coverage.
This commit is contained in:
@@ -49,7 +49,7 @@ class FakeRoutine implements RoutineInterface
|
||||
* "ahoy": will log some nonsense and then drop job into status:"need_job_config" to force it back to the job config routine.
|
||||
* "final": will do some logging, sleep for 10 seconds and then finish. Generates 5 random transactions.
|
||||
*
|
||||
* @return bool
|
||||
* @return void
|
||||
* @throws FireflyException
|
||||
*/
|
||||
public function run(): void
|
||||
@@ -77,7 +77,7 @@ class FakeRoutine implements RoutineInterface
|
||||
/** @var StageAhoyHandler $handler */
|
||||
$handler = app(StageAhoyHandler::class);
|
||||
$handler->run();
|
||||
$this->repository->setStatus($this->importJob, 'ready_to_run');
|
||||
$this->repository->setStatus($this->importJob, 'need_job_config');
|
||||
$this->repository->setStage($this->importJob, 'final');
|
||||
break;
|
||||
case 'final':
|
||||
|
@@ -62,7 +62,7 @@ class FileRoutine implements RoutineInterface
|
||||
|
||||
return;
|
||||
}
|
||||
throw new FireflyException(sprintf('Import routine cannot handle stage "%s"', $this->importJob->stage)); // @codeCoverageIgnore
|
||||
throw new FireflyException(sprintf('Import routine cannot handle status "%s"', $this->importJob->status)); // @codeCoverageIgnore
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user