Skip to content
Snippets Groups Projects
Verified Commit 5aac8633 authored by Damien's avatar Damien
Browse files

[TEST] ResControllerTest message

parent ba2f224c
No related branches found
No related tags found
No related merge requests found
...@@ -269,8 +269,7 @@ class ResControllerTest extends TestCase ...@@ -269,8 +269,7 @@ class ResControllerTest extends TestCase
$response = $resController->getList($fullRequest, new \Slim\Http\Response()); $response = $resController->getList($fullRequest, new \Slim\Http\Response());
$responseBody = json_decode((string)$response->getBody()); $responseBody = json_decode((string)$response->getBody());
$arr_res = $responseBody->resources; $this->assertSame("Bad Request: select is not valid", $responseBody->errors);
$this->assertSame("Bad Request: select parameter not valid", $responseBody->errors);
$aArgs = [ $aArgs = [
'select' => 'res_id', 'select' => 'res_id',
...@@ -283,8 +282,7 @@ class ResControllerTest extends TestCase ...@@ -283,8 +282,7 @@ class ResControllerTest extends TestCase
$response = $resController->getList($fullRequest, new \Slim\Http\Response()); $response = $resController->getList($fullRequest, new \Slim\Http\Response());
$responseBody = json_decode((string)$response->getBody()); $responseBody = json_decode((string)$response->getBody());
$arr_res = $responseBody->resources; $this->assertSame("Bad Request: clause is not valid", $responseBody->errors);
$this->assertSame("Bad Request: clause parameter not valid", $responseBody->errors);
} }
public function testDelete() public function testDelete()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment