File
- drupal/core/modules/views/lib/Drupal/views/Tests/Taxonomy/RelationshipNodeTermDataTest.php, line 30
- Definition of Drupal\views\Tests\Taxonomy\RelationshipNodeTermDataTest.
Class
- RelationshipNodeTermDataTest
- Tests the node_term_data relationship handler.
Namespace
Drupal\views\Tests\Taxonomy
Code
function testViewsHandlerRelationshipNodeTermData() {
$view = views_get_view('test_taxonomy_node_term_data');
$this
->executeView($view, array(
$this->term1->tid,
$this->term2->tid,
));
$resultset = array(
array(
'nid' => $this->nodes[0]->nid,
),
array(
'nid' => $this->nodes[1]->nid,
),
);
$this->column_map = array(
'nid' => 'nid',
);
$this
->assertIdenticalResultset($view, $resultset, $this->column_map);
}