Created index tests for StackApiTestController

Signed-off-by: Ryan Fletcher <ryan.fletcher@codepassion.ca>
This commit is contained in:
Ryan Fletcher
2018-07-15 15:35:48 -04:00
committed by Julius Härtl
parent 54f110f7c6
commit 891fa7b7d5
5 changed files with 125 additions and 42 deletions

View File

@@ -38,7 +38,7 @@ class ApiHelper {
$entity = $service->find($entityId);
if ($entity === false || $entity === null) {
$error['message'] = $entityName . ' does not exist';
$error['message'] = $entityName . ' not found';
$error['status'] = HTTP::STATUS_NOT_FOUND;
return $error;
}