TaxonomyParentUITest.php

Same filename and directory in other branches
  1. 9 core/modules/taxonomy/tests/src/Functional/Views/TaxonomyParentUITest.php
  2. 10 core/modules/taxonomy/tests/src/Functional/Views/TaxonomyParentUITest.php
  3. 11.x core/modules/taxonomy/tests/src/Functional/Views/TaxonomyParentUITest.php

Namespace

Drupal\Tests\taxonomy\Functional\Views

File

core/modules/taxonomy/tests/src/Functional/Views/TaxonomyParentUITest.php

View source
<?php

namespace Drupal\Tests\taxonomy\Functional\Views;

use Drupal\views\Tests\ViewTestData;
use Drupal\Tests\views_ui\Functional\UITestBase;

/**
 * Tests views taxonomy parent plugin UI.
 *
 * @group taxonomy
 * @see Drupal\taxonomy\Plugin\views\access\Role
 */
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
     */
    public static $modules = [
        'taxonomy',
        'taxonomy_test_views',
    ];
    
    /**
     * {@inheritdoc}
     */
    protected function setUp($import_test_views = TRUE) {
        parent::setUp($import_test_views);
        ViewTestData::createTestViews(get_class($this), [
            'taxonomy_test_views',
        ]);
    }
    
    /**
     * Tests the taxonomy parent plugin UI.
     */
    public function testTaxonomyParentUI() {
        $this->drupalGet('admin/structure/views/nojs/handler/test_taxonomy_parent/default/relationship/parent');
        $this->assertNoText('The handler for this item is broken or missing.');
    }

}

Classes

Title Deprecated Summary
TaxonomyParentUITest Tests views taxonomy parent plugin UI.

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