You are here

protected function LayoutLibraryIntegrationTest::setUp in Layout Builder Restrictions 8

Same name and namespace in other branches
  1. 8.2 tests/src/FunctionalJavascript/LayoutLibraryIntegrationTest.php \Drupal\Tests\layout_builder_restrictions\FunctionalJavascript\LayoutLibraryIntegrationTest::setUp()

Overrides BrowserTestBase::setUp

File

tests/src/FunctionalJavascript/LayoutLibraryIntegrationTest.php, line 31

Class

LayoutLibraryIntegrationTest
Demonstrate that Layout Builder Restrictions works with Layout Library.

Namespace

Drupal\Tests\layout_builder_restrictions\FunctionalJavascript

Code

protected function setUp() {
  parent::setUp();
  $this
    ->drupalCreateContentType([
    'type' => 'alpha',
    'name' => 'Alpha',
  ]);
  $this
    ->drupalLogin($this
    ->drupalCreateUser([
    'access administration pages',
    'configure any layout',
    'administer node display',
  ]));
}