$this->term1->
set('parent',
$this->term2->
id());
$this->term1->
save();
// Store terms in an array for testing.
$this->terms
[] =
$this->term1;
$this->terms
[] =
$this->term2;
// Only set term1 on node1 and term2 on node2 for testing.
unset($this->nodes
[0
]->field_views_testing_tags
[1
]);
$this->nodes
[0
]->
save();
unset($this->nodes
[1
]->field_views_testing_tags
[0
]);
$this->nodes
[1
]->
save();
Views::
viewsData()->
clear();
} /**
* Tests the taxonomy parent plugin UI.
*/
public function testTaxonomyRelationships() { // Check the generated views data of taxonomy_index.
$views_data = Views::
viewsData()->
get('taxonomy_index'
);
// Check the table join data.