Expand some tests.

This commit is contained in:
James Cole
2017-03-11 22:28:51 +01:00
parent 4abc271805
commit 8f14c78ba1
3 changed files with 102 additions and 5 deletions

View File

@@ -61,15 +61,12 @@ class AccountController extends Controller
*/
public function all(Account $account)
{
$cache = new CacheProperties();
$cache = new CacheProperties;
$cache->addProperty('chart.account.all');
$cache->addProperty($account->id);
if ($cache->has()) {
Log::debug('Return chart.account.all from cache.');
return Response::json($cache->get()); // @codeCoverageIgnore
}
Log::debug('Regenerate chart.account.all from scratch.');
/** @var AccountRepositoryInterface $repository */
$repository = app(AccountRepositoryInterface::class);