protected function FieldUIDeleteTest::setUp in Drupal 9
Same name and namespace in other branches
- 8 core/modules/field_ui/tests/src/Functional/FieldUIDeleteTest.php \Drupal\Tests\field_ui\Functional\FieldUIDeleteTest::setUp()
Overrides BrowserTestBase::setUp
File
- core/
modules/ field_ui/ tests/ src/ Functional/ FieldUIDeleteTest.php, line 49
Class
- FieldUIDeleteTest
- Tests deletion of a field and their dependencies in the UI.
Namespace
Drupal\Tests\field_ui\FunctionalCode
protected function setUp() : void {
parent::setUp();
$this
->drupalPlaceBlock('system_breadcrumb_block');
$this
->drupalPlaceBlock('local_tasks_block');
$this
->drupalPlaceBlock('page_title_block');
// Create a test user.
$admin_user = $this
->drupalCreateUser([
'access content',
'administer content types',
'administer node fields',
'administer node form display',
'administer node display',
'administer users',
'administer account settings',
'administer user display',
'bypass node access',
]);
$this
->drupalLogin($admin_user);
}