You are here

protected function LinkAttributesFieldTest::setUp in Link Attributes widget 8

Overrides BrowserTestBase::setUp

File

tests/src/Functional/LinkAttributesFieldTest.php, line 43

Class

LinkAttributesFieldTest
Tests link attributes functionality.

Namespace

Drupal\Tests\link_attributes\Functional

Code

protected function setUp() : void {
  parent::setUp();
  $this->adminUser = $this
    ->drupalCreateUser([
    'administer content types',
    'administer node fields',
    'administer node display',
  ]);
  $this
    ->drupalLogin($this->adminUser);

  // Breadcrumb is required for FieldUiTestTrait::fieldUIAddNewField.
  $this
    ->drupalPlaceBlock('system_breadcrumb_block');
  \Drupal::state()
    ->set('link_attributes_test_alterinfo.hook_link_attributes_plugin_alter', TRUE);
}