Created index tests for StackApiTestController
Signed-off-by: Ryan Fletcher <ryan.fletcher@codepassion.ca>
This commit is contained in:
committed by
Julius Härtl
parent
54f110f7c6
commit
891fa7b7d5
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user