function LinkFieldUITest::setUp

Same name in other branches
  1. 9 core/modules/link/tests/src/Functional/LinkFieldUITest.php \Drupal\Tests\link\Functional\LinkFieldUITest::setUp()
  2. 8.9.x core/modules/link/tests/src/Functional/LinkFieldUITest.php \Drupal\Tests\link\Functional\LinkFieldUITest::setUp()
  3. 11.x core/modules/link/tests/src/Functional/LinkFieldUITest.php \Drupal\Tests\link\Functional\LinkFieldUITest::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/link/tests/src/Functional/LinkFieldUITest.php, line 57

Class

LinkFieldUITest
Tests link field UI functionality.

Namespace

Drupal\Tests\link\Functional

Code

protected function setUp() : void {
    parent::setUp();
    $this->contentType = $this->drupalCreateContentType();
    $this->adminUser = $this->drupalCreateUser([
        'administer content types',
        'administer node fields',
        'administer node display',
    ]);
    $this->helpTextUser = $this->drupalCreateUser([
        'create ' . $this->contentType
            ->id() . ' content',
    ]);
    $this->drupalPlaceBlock('system_breadcrumb_block');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.