You are here

protected function AddLayoutTest::setUp in Layout builder library 8

Overrides BrowserTestBase::setUp

File

tests/src/Functional/AddLayoutTest.php, line 32

Class

AddLayoutTest
Tests adding a layout to the library.

Namespace

Drupal\Tests\layout_library\Functional

Code

protected function setUp() {
  parent::setUp();
  $this
    ->drupalPlaceBlock('local_actions_block');
  $this
    ->createContentType([
    'type' => 'my_little_dinosaur',
    'name' => 'My Little Dinosaur',
  ]);
  $this
    ->drupalLogin($this
    ->drupalCreateUser([
    'configure any layout',
    'create my_little_dinosaur content',
    'administer node display',
  ]));
}