Improve test coverage.

This commit is contained in:
James Cole
2019-08-03 10:50:43 +02:00
parent b8b59b13a7
commit 75c2529d3e
23 changed files with 367 additions and 539 deletions

View File

@@ -156,7 +156,7 @@ class ImportableConverter
'transactions' => [
[
'user' => $this->importJob->user_id,
'type' => $transactionType,
'type' => strtolower($transactionType),
'date' => $this->convertDateValue($importable->date) ?? Carbon::now()->format('Y-m-d H:i:s'),
'order' => 0,

View File

@@ -81,6 +81,7 @@ class StageImportDataHandler
}
$totalSet = array_merge(...$totalSet);
Log::debug(sprintf('Found %d transactions in total.', count($totalSet)));
$this->repository->setTransactions($this->importJob, $totalSet);
}