mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Expand test coverage.
This commit is contained in:
@@ -193,9 +193,11 @@ class ImportArrayStorage
|
||||
unset($transaction['importHashV2'], $transaction['original-source']);
|
||||
$json = json_encode($transaction);
|
||||
if (false === $json) {
|
||||
// @codeCoverageIgnoreStart
|
||||
/** @noinspection ForgottenDebugOutputInspection */
|
||||
Log::error('Could not encode import array.', print_r($transaction, true));
|
||||
throw new FireflyException('Could not encode import array. Please see the logs.'); // @codeCoverageIgnore
|
||||
throw new FireflyException('Could not encode import array. Please see the logs.');
|
||||
// @codeCoverageIgnoreEnd
|
||||
}
|
||||
$hash = hash('sha256', $json, false);
|
||||
Log::debug(sprintf('The hash is: %s', $hash));
|
||||
|
Reference in New Issue
Block a user