Fix tests.

This commit is contained in:
James Cole
2018-07-31 20:39:36 +02:00
parent 1af45aff73
commit 194073e49a
5 changed files with 90 additions and 26 deletions

View File

@@ -223,8 +223,8 @@ class ImportArrayStorage
{
// collect transactions using the journal collector
$collector = app(JournalCollectorInterface::class);
$collector->setUser(auth()->user());
$collector->withOpposingAccount()->withCategoryInformation()->withBudgetInformation();
$collector->setUser($this->importJob->user);
$collector->withOpposingAccount();
// filter on specific journals.
$collector->setJournals(new Collection([$journal]));