You are here

public function PageManagerIntegrationTest::test in Core Context 8

Tests Core Context's integration with Page Manager.

File

tests/src/Functional/PageManagerIntegrationTest.php, line 32

Class

PageManagerIntegrationTest
@group core_context

Namespace

Drupal\Tests\core_context\Functional

Code

public function test() {
  $node = $this
    ->drupalCreateNode([
    'type' => $this
      ->drupalCreateContentType()
      ->id(),
  ]);
  $account = $this
    ->drupalCreateUser([
    'access content',
  ]);
  $this
    ->drupalLogin($account);
  $this
    ->drupalGet($node
    ->toUrl());
  $this
    ->assertSession()
    ->pageTextContains('Powered by Drupal');
}