Further Drupal 8.6.4 changes. Some core files were not committed before a commit...
[yaffs-website] / web / core / modules / field_ui / tests / src / Functional / FieldUIIndentationTest.php
1 <?php
2
3 namespace Drupal\Tests\field_ui\Functional;
4
5 use Drupal\Tests\BrowserTestBase;
6
7 /**
8  * Tests indentation on Field UI.
9  *
10  * @group field_ui
11  */
12 class FieldUIIndentationTest extends BrowserTestBase {
13
14   /**
15    * Modules to install.
16    *
17    * @var array
18    */
19   public static $modules = ['node', 'field_ui', 'field_ui_test'];
20
21   /**
22    * {@inheritdoc}
23    */
24   protected function setUp() {
25     parent::setUp();
26
27     // Create a test user.
28     $admin_user = $this->drupalCreateUser(['access content', 'administer content types', 'administer node display']);
29     $this->drupalLogin($admin_user);
30
31     // Create Basic page node type.
32     $this->drupalCreateContentType(['type' => 'page', 'name' => 'Basic page']);
33
34   }
35
36   public function testIndentation() {
37     $this->drupalGet('admin/structure/types/manage/page/display');
38     $this->assertRaw('js-indentation indentation');
39   }
40
41 }