You are here

protected function LayoutLibraryIntegrationTest::setUp in Layout Builder Restrictions 8.2

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

Overrides LayoutBuilderRestrictionsTestBase::setUp

File

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

Class

LayoutLibraryIntegrationTest
Demonstrate that Layout Builder Restrictions works with Layout Library.

Namespace

Drupal\Tests\layout_builder_restrictions\FunctionalJavascript

Code

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