Add test coverage for allocation routes

This commit is contained in:
Dane Everitt 2020-07-10 21:17:28 -07:00
parent d040b3a242
commit a430ebb89e
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
3 changed files with 220 additions and 2 deletions

View file

@ -21,8 +21,10 @@ class UpdateAllocationRequest extends ClientApiRequest
*/
public function rules(): array
{
$rules = Allocation::getRules();
return [
'notes' => Allocation::$validationRules['notes'],
'notes' => array_merge($rules['notes'], ['present']),
];
}
}