You are here

protected function LayoutBuilderTest::setUp in Scheduler content moderation integration 8

Overrides BrowserTestBase::setUp

File

tests/src/Functional/LayoutBuilderTest.php, line 44

Class

LayoutBuilderTest
Test if layout builder can be accessed.

Namespace

Drupal\Tests\scheduler_content_moderation_integration\Functional

Code

protected function setUp() {
  parent::setUp();
  $this
    ->drupalCreateContentType([
    'type' => 'article',
    'name' => 'Article',
  ])
    ->setThirdPartySetting('scheduler', 'publish_enable', TRUE)
    ->setThirdPartySetting('scheduler', 'unpublish_enable', TRUE)
    ->save();
  $workflow = $this
    ->createEditorialWorkflow();
  $workflow
    ->getTypePlugin()
    ->addEntityTypeAndBundle('node', 'article');
  $workflow
    ->save();
  $this
    ->drupalLogin($this
    ->drupalCreateUser([
    'configure any layout',
    'access content',
    'administer node display',
  ]));
}