Fix tests.

This commit is contained in:
James Cole
2018-07-01 09:27:22 +02:00
parent 0502f2a4a5
commit db149ca6e1
50 changed files with 551 additions and 647 deletions

View File

@@ -71,7 +71,7 @@ class CurrencyMapper
return $result;
}
}
if (null === $data['code']) {
if (!isset($data['code']) || $data['code'] === null) {
return null;
}

View File

@@ -282,7 +282,7 @@ class ImportableConverter
'piggy_bank_id' => null,
'piggy_bank_name' => null,
'bill_id' => $billId,
'bill_name' => null === $billId ? $importable->billName : null,
'bill_name' => $importable->billName,
// transaction data:
'transactions' => [