Expand test coverage

This commit is contained in:
James Cole
2017-12-23 22:02:54 +01:00
parent f6096339cb
commit f85bdcebaf
2 changed files with 6 additions and 4 deletions

View File

@@ -443,7 +443,7 @@ class SingleController extends Controller
foreach ($accounts as $account) {
$type = $account->getMeta('accountRole');
if (0 === strlen($type)) {
$type = 'no_account_type';
$type = 'no_account_type'; // @codeCoverageIgnore
}
$key = strval(trans('firefly.opt_group_' . $type));
$return[$key][$account->id] = $account->name;
@@ -463,7 +463,7 @@ class SingleController extends Controller
foreach ($accounts as $account) {
$type = $account->getMeta('accountRole');
if (0 === strlen($type)) {
$type = 'no_account_type';
$type = 'no_account_type'; // @codeCoverageIgnore
}
$key = strval(trans('firefly.opt_group_' . $type));
$return[$key][$account->id] = $account->name;
@@ -482,7 +482,7 @@ class SingleController extends Controller
$count = $this->repository->countTransactions($journal);
if ($count > 2) {
return true;
return true; // @codeCoverageIgnore
}
return false;