Improved test coverage.

This commit is contained in:
James Cole
2015-06-04 21:35:36 +02:00
parent bb1da31830
commit ad1c61d959
16 changed files with 159 additions and 109 deletions

View File

@@ -114,7 +114,7 @@ class AccountRepository implements AccountRepositoryInterface
$cache->addProperty($preference->data);
$cache->addProperty('frontPageaccounts');
if ($cache->has()) {
return $cache->get();
return $cache->get(); // @codeCoverageIgnore
}
@@ -147,7 +147,7 @@ class AccountRepository implements AccountRepositoryInterface
$cache->addProperty($start);
$cache->addProperty($end);
if ($cache->has()) {
return $cache->get();
return $cache->get(); // @codeCoverageIgnore
}
$set = Auth::user()
@@ -233,7 +233,7 @@ class AccountRepository implements AccountRepositoryInterface
$cache->addProperty($ids);
$cache->addProperty('piggyAccounts');
if ($cache->has()) {
return $cache->get();
return $cache->get(); // @codeCoverageIgnore
}
$ids = array_unique($ids);