Backup of db before drupal security update
[yaffs-website] / web / core / modules / taxonomy / src / Tests / Views / TaxonomyParentUITest.php
1 <?php
2
3 namespace Drupal\taxonomy\Tests\Views;
4
5 use Drupal\views\Tests\ViewTestData;
6 use Drupal\views_ui\Tests\UITestBase;
7
8 /**
9  * Tests views taxonomy parent plugin UI.
10  *
11  * @group taxonomy
12  * @see Drupal\taxonomy\Plugin\views\access\Role
13  */
14 class TaxonomyParentUITest extends UITestBase {
15
16   /**
17    * Views used by this test.
18    *
19    * @var array
20    */
21   public static $testViews = ['test_taxonomy_parent'];
22
23   /**
24    * Modules to enable.
25    *
26    * @var array
27    */
28   public static $modules = ['taxonomy', 'taxonomy_test_views'];
29
30   /**
31    * {@inheritdoc}
32    */
33   protected function setUp() {
34     parent::setUp();
35
36     ViewTestData::createTestViews(get_class($this), ['taxonomy_test_views']);
37   }
38
39   /**
40    * Tests the taxonomy parent plugin UI.
41    */
42   public function testTaxonomyParentUI() {
43     $this->drupalGet('admin/structure/views/nojs/handler/test_taxonomy_parent/default/relationship/parent');
44     $this->assertNoText('The handler for this item is broken or missing.');
45   }
46
47 }