Skip to content

Commit

Permalink
tests: debug test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredhendrickson13 committed Aug 16, 2023
1 parent ce03904 commit 117e68c
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class APICoreResponseTestCase extends API\Core\TestCase {
$response->to_representation(),
[
"code" => 500,
"status" => $response->get_http_status_message(500),
"status" => "internal server error",
"response_id" => "TEST_RESPONSE_ID",
"message" => "Test message",
"data" => []
Expand All @@ -63,11 +63,12 @@ class APICoreResponseTestCase extends API\Core\TestCase {
);
$response->code = 400;

var_dump($response->to_representation());
$this->assert_equals(
$response->to_representation(),
[
"code" => 400,
"status" => $response->get_http_status_message(400),
"status" => "bad request",
"response_id" => "TEST_RESPONSE_ID2",
"message" => "Test message 2",
"data" => ["test_data_field" => "test_data_value"]
Expand Down

0 comments on commit 117e68c

Please sign in to comment.