protected function LayoutBuilderRestrictionsTest::setUp in Layout Builder Restrictions 8
Overrides BrowserTestBase::setUp
File
- tests/
src/ FunctionalJavascript/ LayoutBuilderRestrictionsTest.php, line 28
Class
- LayoutBuilderRestrictionsTest
- Demonstrate that blocks can be individually restricted.
Namespace
Drupal\Tests\layout_builder_restrictions\FunctionalJavascriptCode
protected function setUp() {
parent::setUp();
// Create a node bundle.
$this
->createContentType([
'type' => 'bundle_with_section_field',
]);
$this
->drupalLogin($this
->drupalCreateUser([
'access administration pages',
'administer blocks',
'administer node display',
'administer node fields',
'configure any layout',
]));
}