You are here

protected function GlobalConfigTest::setUp in Layout Builder Component Attributes 1.1.x

Same name and namespace in other branches
  1. 1.2.x tests/src/Functional/GlobalConfigTest.php \Drupal\Tests\layout_builder_component_attributes\Functional\GlobalConfigTest::setUp()
  2. 1.0.x tests/src/Functional/GlobalConfigTest.php \Drupal\Tests\layout_builder_component_attributes\Functional\GlobalConfigTest::setUp()

Overrides BrowserTestBase::setUp

File

tests/src/Functional/GlobalConfigTest.php, line 30

Class

GlobalConfigTest
Test global configuration form and storage.

Namespace

Drupal\Tests\layout_builder_component_attributes\Functional

Code

protected function setUp() : void {
  parent::setUp();

  // Create authenticated user.
  $this->authUser = $this
    ->drupalCreateUser([
    'access administration pages',
  ]);

  // Create admin user.
  $this->adminUser = $this
    ->drupalCreateUser([
    'access administration pages',
    'administer layout builder component attributes',
  ]);
  $this
    ->drupalPlaceBlock('system_messages_block');
}