You are here

protected function PageNodeSelectionTest::setUp in Page Manager 8.4

Overrides BrowserTestBase::setUp

File

tests/src/Functional/PageNodeSelectionTest.php, line 30

Class

PageNodeSelectionTest
Tests selecting variants based on nodes.

Namespace

Drupal\Tests\page_manager\Functional

Code

protected function setUp() {
  parent::setUp();
  $this
    ->drupalCreateContentType([
    'type' => 'article',
    'name' => 'Article',
  ]);
  $this
    ->drupalCreateContentType([
    'type' => 'page',
    'name' => 'Page',
  ]);
  $this
    ->drupalLogin($this
    ->drupalCreateUser([
    'administer pages',
    'create article content',
    'create page content',
  ]));
  $this
    ->drupalPlaceBlock('page_title_block');
}