fix api metadata test

This commit is contained in:
Leo Germani 2018-02-16 17:16:45 -02:00
parent 9800494d49
commit ab26bf6f53
1 changed files with 2 additions and 2 deletions

View File

@ -98,9 +98,9 @@ class TAINACAN_REST_Metadata_Controller extends TAINACAN_UnitApiTestCase {
$data = $response->get_data();
$field = $data[0];
$fields_names = array_map(function($field) {return $field['name'];}, $data);
$this->assertEquals('Data', $field['name']);
$this->assertContains('Data', $fields_names);
################### Get field of item with value #######################