tainacan_entity_factory->create_entity( 'collection', array( 'name' => 'testeItemMetadata', 'description' => 'No description', ), true, true ); $type = $this->tainacan_metadatum_factory->create_metadatum('text'); $metadatum = $this->tainacan_entity_factory->create_entity( 'metadatum', array( 'name' => 'teste_metadado', 'description' => 'descricao', 'collection' => $collection, 'metadata_type' => $type, 'accept_suggestion' => true ), true, true ); $item = $this->tainacan_entity_factory->create_entity( 'item', array( 'title' => 'item_teste_metadado', 'description' => 'adasdasdsa', 'collection' => $collection ), true, true ); $this->collection = $collection; $this->item = $item; $this->metadatum = $metadatum; return ['collection' => $collection, 'item' => $item, 'metadatum' => $metadatum]; } } ?>