Implemented some new tests.

This commit is contained in:
James Cole
2016-01-24 20:38:58 +01:00
parent a013553a6c
commit 08131e42af
6 changed files with 248 additions and 158 deletions

View File

@@ -60,6 +60,14 @@ class PiggyBankRepository implements PiggyBankRepositoryInterface
return $piggyBank->piggyBankEvents()->orderBy('date', 'DESC')->orderBy('id', 'DESC')->get();
}
/**
* @return int
*/
public function getMaxOrder()
{
return intval(Auth::user()->piggyBanks()->max('order'));
}
/**
* @return Collection
*/