fix test fields
This commit is contained in:
parent
e6bc756bfe
commit
70c30127c0
|
@ -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
|
||||
|
|
|
@ -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',
|
||||
)
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue