Create bills in test data, sort them [skip ci]

This commit is contained in:
James Cole
2015-07-01 10:52:42 +02:00
parent 3aacb6f5f3
commit e0d863a46f
2 changed files with 40 additions and 1 deletions

View File

@@ -93,6 +93,12 @@ class BillRepository implements BillRepositoryInterface
/** @var Collection $set */
$set = Auth::user()->bills()->orderBy('name', 'ASC')->get();
$set = $set->sortBy(
function (Bill $bill) {
return strtolower($bill->name);
}
);
return $set;
}