TaxonomyParentUITest.php in Drupal 9
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;
class TaxonomyParentUITest extends UITestBase {
public static $testViews = [
'test_taxonomy_parent',
];
protected $defaultTheme = 'stark';
protected static $modules = [
'taxonomy',
'taxonomy_test_views',
];
protected function setUp($import_test_views = TRUE) : void {
parent::setUp($import_test_views);
ViewTestData::createTestViews(static::class, [
'taxonomy_test_views',
]);
}
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.');
}
}