class TaxonomyParentUITest

Same name and namespace in other branches
  1. 11.x core/modules/taxonomy/tests/src/Functional/Views/TaxonomyParentUITest.php \Drupal\Tests\taxonomy\Functional\Views\TaxonomyParentUITest

Tests views taxonomy parent plugin UI.

@group taxonomy

Hierarchy

Expanded class hierarchy of TaxonomyParentUITest

See also

Drupal\taxonomy\Plugin\views\access\Role

File

core/modules/taxonomy/tests/src/Functional/Views/TaxonomyParentUITest.php, line 13

Namespace

Drupal\Tests\taxonomy\Functional\Views
View source
class TaxonomyParentUITest extends UITestBase {
  
  /**
   * Views used by this test.
   *
   * @var array
   */
  public static $testViews = [
    'test_taxonomy_parent',
  ];
  
  /**
   * {@inheritdoc}
   */
  protected $defaultTheme = 'stark';
  
  /**
   * Modules to enable.
   *
   * @var array
   */
  protected static $modules = [
    'taxonomy',
    'taxonomy_test_views',
  ];
  
  /**
   * {@inheritdoc}
   */
  protected function setUp($import_test_views = TRUE, $modules = [
    'taxonomy_test_views',
  ]) : void {
    parent::setUp($import_test_views, $modules);
  }
  
  /**
   * Tests the taxonomy parent plugin UI.
   */
  public function testTaxonomyParentUI() {
    $this->drupalGet('admin/structure/views/nojs/handler/test_taxonomy_parent/default/relationship/parent');
    $this->assertSession()
      ->pageTextNotContains('The handler for this item is broken or missing.');
  }

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.