You are here

protected function LayoutDisplayTest::setUp in Layout builder library 8

Overrides BrowserTestBase::setUp

File

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

Class

LayoutDisplayTest
Test using a layout from the library on a specific entity view display.

Namespace

Drupal\Tests\layout_library\Functional

Code

protected function setUp() {
  parent::setUp();
  $this
    ->drupalPlaceBlock('local_actions_block');
  $this
    ->drupalPlaceBlock('local_tasks_block');
  $this
    ->createContentType([
    'type' => 'cats',
  ]);
  $this
    ->drupalLogin($this
    ->drupalCreateUser([
    'configure any layout',
    'create cats content',
    'edit own cats content',
    'administer node display',
  ]));
}