3 namespace Drupal\Tests\field_ui\Functional;
5 use Drupal\Tests\BrowserTestBase;
8 * Tests indentation on Field UI.
12 class FieldUIIndentationTest extends BrowserTestBase {
19 public static $modules = ['node', 'field_ui', 'field_ui_test'];
24 protected function setUp() {
27 // Create a test user.
28 $admin_user = $this->drupalCreateUser(['access content', 'administer content types', 'administer node display']);
29 $this->drupalLogin($admin_user);
31 // Create Basic page node type.
32 $this->drupalCreateContentType(['type' => 'page', 'name' => 'Basic page']);
36 public function testIndentation() {
37 $this->drupalGet('admin/structure/types/manage/page/display');
38 $this->assertRaw('js-indentation indentation');