better debug

This commit is contained in:
Jacson Passold 2018-01-29 18:36:15 -02:00
parent 0e01a2bff7
commit bf4f254df7
1 changed files with 1 additions and 1 deletions

View File

@ -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'];