Use non-static class for ApiContext to improve testability.

This commit is contained in:
James Cole
2018-05-25 06:26:37 +02:00
parent 217ca98933
commit 70110208fc
3 changed files with 84 additions and 19 deletions

View File

@@ -46,7 +46,6 @@ class BunqRoutine implements RoutineInterface
*
* The final status of the routine must be "provider_finished".
*
* @return bool
* @throws FireflyException
*/
public function run(): void
@@ -86,6 +85,7 @@ class BunqRoutine implements RoutineInterface
break;
}
}
throw new FireflyException(sprintf('bunq import routine cannot handle status "%s"', $this->importJob->status)); // @codeCoverageIgnore
}