FieldUIIndentationTest.php in Drupal 8
File
core/modules/field_ui/tests/src/Functional/FieldUIIndentationTest.php
View source
<?php
namespace Drupal\Tests\field_ui\Functional;
use Drupal\Tests\BrowserTestBase;
class FieldUIIndentationTest extends BrowserTestBase {
public static $modules = [
'node',
'field_ui',
'field_ui_test',
];
protected $defaultTheme = 'stark';
protected function setUp() {
parent::setUp();
$admin_user = $this
->drupalCreateUser([
'access content',
'administer content types',
'administer node display',
]);
$this
->drupalLogin($admin_user);
$this
->drupalCreateContentType([
'type' => 'page',
'name' => 'Basic page',
]);
}
public function testIndentation() {
$this
->drupalGet('admin/structure/types/manage/page/display');
$this
->assertRaw('js-indentation indentation');
}
}