You are here

function RelationshipNodeTermDataTest::testViewsHandlerRelationshipNodeTermData in Views (for Drupal 7) 8.3

File

lib/Drupal/views/Tests/Taxonomy/RelationshipNodeTermDataTest.php, line 32
Definition of Drupal\views\Tests\Taxonomy\RelationshipNodeTermDataTest.

Class

RelationshipNodeTermDataTest
Tests the node_term_data relationship handler.

Namespace

Drupal\views\Tests\Taxonomy

Code

function testViewsHandlerRelationshipNodeTermData() {
  $this
    ->executeView($this->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($this->view, $resultset, $this->column_map);
}