From bf4f254df7fd7a54d9ce49c06ada8b393af4c3da Mon Sep 17 00:00:00 2001 From: Jacson Passold Date: Mon, 29 Jan 2018 18:36:15 -0200 Subject: [PATCH] better debug --- tests/test-api-metadata.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-api-metadata.php b/tests/test-api-metadata.php index c57c024c7..5509192bd 100644 --- a/tests/test-api-metadata.php +++ b/tests/test-api-metadata.php @@ -114,7 +114,7 @@ class TAINACAN_REST_Metadata_Controller extends TAINACAN_UnitApiTestCase { $response = $this->server->dispatch($request); $data = $response->get_data(); - + $this->assertTrue(is_array($data) && array_key_exists(0, $data), sprintf('cannot read metadata, response: %s', print_r($data, true))); $item_metadata = $data[0]; $metadata = $item_metadata['metadata'];