fix test fields

This commit is contained in:
Leo Germani 2018-02-22 17:19:18 -03:00
parent e6bc756bfe
commit 70c30127c0
2 changed files with 2 additions and 4 deletions

View File

@ -24,7 +24,7 @@ class TAINACAN_REST_Terms_Controller extends TAINACAN_UnitApiTestCase {
'name' => 'Metadata filtered',
'description' => 'Is filtered',
'collection_id' => $collection->get_id(),
'field_type' => 'text'
'field_type' => 'Tainacan\Field_Types\Text',
),
true,
true

View File

@ -22,13 +22,11 @@ class TAINACAN_REST_Metadata_Controller extends TAINACAN_UnitApiTestCase {
true
);
$field = $this->tainacan_field_factory->create_field('text', '', true);
$field = json_encode(
array(
'name' => 'Moeda',
'description' => 'Descreve campo moeda.',
'field_type' => $field->get_primitive_type(),
'field_type' => 'Tainacan\Field_Types\Text',
)
);