Various code coverage and test related fixes.

This commit is contained in:
James Cole committed 2017-04-22 07:05:31 +02:00
1 parent ee08fc2421
commit e3cd11ec2e
17 files changed
+238 -74

No files matched your search

@@ -185,9 +185,11 @@ class TransactionController extends Controller
$foreignCurrency = null;
if ($journal->hasMeta('foreign_currency_id')) {
// @codeCoverageIgnoreStart
/** @var CurrencyRepositoryInterface $repository */
$repository = app(CurrencyRepositoryInterface::class);
$foreignCurrency = $repository->find(intval($journal->getMeta('foreign_currency_id')));
// @codeCoverageIgnoreEnd
}
return view('transactions.show', compact('journal', 'events', 'subTitle', 'what', 'transactions', 'foreignCurrency'));