function RelationshipNodeTermDataTest::testViewsHandlerRelationshipNodeTermData

File

drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/Views/RelationshipNodeTermDataTest.php, line 30
Contains \Drupal\taxonomy\Tests\Views\RelationshipNodeTermDataTest.

Class

RelationshipNodeTermDataTest
Tests the node_term_data relationship handler.

Namespace

Drupal\taxonomy\Tests\Views

Code

function testViewsHandlerRelationshipNodeTermData() {
  $view = views_get_view('test_taxonomy_node_term_data');
  $this
    ->executeView($view, array(
    $this->term1
      ->id(),
    $this->term2
      ->id(),
  ));
  $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);
}