protected function LayoutLibraryTest::setUp in Layout builder library 8
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ LayoutLibraryTest.php, line 32
Class
- LayoutLibraryTest
- Tests using a layout from the library on an entity.
Namespace
Drupal\Tests\layout_library\FunctionalCode
protected function setUp() {
parent::setUp();
$this
->drupalPlaceBlock('local_actions_block');
// @todo The Layout Builder UI relies on local tasks; fix in
// https://www.drupal.org/project/drupal/issues/2917777.
$this
->drupalPlaceBlock('local_tasks_block');
$this
->createContentType([
'type' => 'dogs',
]);
$this
->drupalLogin($this
->drupalCreateUser([
'configure any layout',
'create dogs content',
'edit own dogs content',
'administer node display',
]));
}