You are here

public function ViewEditTest::testRelationRepresentativeNode in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/views_ui/src/Tests/ViewEditTest.php \Drupal\views_ui\Tests\ViewEditTest::testRelationRepresentativeNode()

Tests Representative Node for a Taxonomy Term.

File

core/modules/views_ui/src/Tests/ViewEditTest.php, line 219
Contains \Drupal\views_ui\Tests\ViewEditTest.

Class

ViewEditTest
Tests some general functionality of editing views, like deleting a view.

Namespace

Drupal\views_ui\Tests

Code

public function testRelationRepresentativeNode() {

  // Populate and submit the form.
  $edit["name[taxonomy_term_field_data.tid_representative]"] = TRUE;
  $this
    ->drupalPostForm('admin/structure/views/nojs/add-handler/test_groupwise_term_ui/default/relationship', $edit, 'Add and configure relationships');

  // Apply changes.
  $edit = array();
  $this
    ->drupalPostForm('admin/structure/views/nojs/handler/test_groupwise_term_ui/default/relationship/tid_representative', $edit, 'Apply');
}