adds tests for facets with hierarchical taxonomies

This commit is contained in:
vnmedeiros 2019-05-02 12:20:42 -03:00
parent 8b0af53de6
commit fc2e4d773a
1 changed files with 3 additions and 1 deletions

View File

@ -196,6 +196,7 @@ class Facets extends TAINACAN_UnitApiTestCase {
),
true
);
$this->term2_root2_c2 = $term2_root2_c2;
$term2_root2_gc1 = $this->tainacan_entity_factory->create_entity(
'term',
array(
@ -214,6 +215,7 @@ class Facets extends TAINACAN_UnitApiTestCase {
),
true
);
$this->term2_root2_gc2 = $term2_root2_gc2;
$term2_root2_ggc1 = $this->tainacan_entity_factory->create_entity(
'term',
array(
@ -880,7 +882,7 @@ class Facets extends TAINACAN_UnitApiTestCase {
// test include taxonomy
$values = $this->repository->fetch_all_metadatum_values( $this->meta_3_tax->get_id(), [
'count_items' => true,
'include' => ['18','16'],
'include' => [$this->term2_root2_gc2->get_id(), $this->term2_root2_c2->get_id()], //['18','16'],
'search' => 'GGC',
'items_filter' => [
'meta_query' => [