class FieldUIIndentationTest
Same name and namespace in other branches
- 11.x core/modules/field_ui/tests/src/Functional/FieldUIIndentationTest.php \Drupal\Tests\field_ui\Functional\FieldUIIndentationTest
- 10 core/modules/field_ui/tests/src/Functional/FieldUIIndentationTest.php \Drupal\Tests\field_ui\Functional\FieldUIIndentationTest
- 8.9.x core/modules/field_ui/tests/src/Functional/FieldUIIndentationTest.php \Drupal\Tests\field_ui\Functional\FieldUIIndentationTest
Tests indentation on Field UI.
@group field_ui
Hierarchy
- class \Drupal\Tests\BrowserTestBase uses \Drupal\Core\Test\FunctionalTestSetupTrait, \Drupal\Tests\UiHelperTrait, \Drupal\Core\Test\TestSetupTrait, \Drupal\Tests\block\Traits\BlockCreationTrait, \Drupal\FunctionalTests\AssertLegacyTrait, \Drupal\Tests\RandomGeneratorTrait, \Drupal\Tests\node\Traits\NodeCreationTrait, \Drupal\Tests\node\Traits\ContentTypeCreationTrait, \Drupal\Tests\ConfigTestTrait, \Drupal\Tests\TestRequirementsTrait, \Drupal\Tests\user\Traits\UserCreationTrait, \Drupal\Tests\XdebugRequestTrait, \Drupal\Tests\Traits\PhpUnitWarnings, \Drupal\Tests\PhpUnitCompatibilityTrait, \Symfony\Bridge\PhpUnit\ExpectDeprecationTrait, \Drupal\Tests\ExtensionListTestTrait extends \PHPUnit\Framework\TestCase
- class \Drupal\Tests\field_ui\Functional\FieldUIIndentationTest extends \Drupal\Tests\BrowserTestBase
Expanded class hierarchy of FieldUIIndentationTest
File
-
core/
modules/ field_ui/ tests/ src/ Functional/ FieldUIIndentationTest.php, line 12
Namespace
Drupal\Tests\field_ui\FunctionalView source
class FieldUIIndentationTest extends BrowserTestBase {
/**
* Modules to install.
*
* @var array
*/
protected static $modules = [
'node',
'field_ui',
'field_ui_test',
];
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'stark';
/**
* {@inheritdoc}
*/
protected function setUp() : void {
parent::setUp();
// Create a test user.
$admin_user = $this->drupalCreateUser([
'access content',
'administer content types',
'administer node display',
]);
$this->drupalLogin($admin_user);
// Create Basic page node type.
$this->drupalCreateContentType([
'type' => 'page',
'name' => 'Basic page',
]);
}
public function testIndentation() {
$this->drupalGet('admin/structure/types/manage/page/display');
$this->assertSession()
->responseContains('js-indentation indentation');
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.