You are here

protected function PageParametersTest::setUp in Page Manager 8.4

Overrides BrowserTestBase::setUp

File

page_manager_ui/tests/src/Functional/PageParametersTest.php, line 28

Class

PageParametersTest
Tests the page parameters capabilities.

Namespace

Drupal\Tests\page_manager_ui\Functional

Code

protected function setUp() {
  parent::setUp();
  $this
    ->drupalCreateContentType([
    'type' => 'article',
    'name' => 'Article',
  ]);
  $this
    ->drupalPlaceBlock('local_tasks_block');
  $this
    ->drupalPlaceBlock('local_actions_block');
  $this
    ->drupalPlaceBlock('system_branding_block');
  $this
    ->drupalPlaceBlock('page_title_block');
  $this
    ->drupalLogin($this
    ->drupalCreateUser([
    'administer pages',
    'access administration pages',
    'view the administration theme',
    'create article content',
  ]));
}