PageManagerIntegrationTest.php in Core Context 8
File
tests/src/Functional/PageManagerIntegrationTest.php
View source
<?php
namespace Drupal\Tests\core_context\Functional;
use Drupal\Tests\BrowserTestBase;
class PageManagerIntegrationTest extends BrowserTestBase {
protected $defaultTheme = 'stark';
protected static $modules = [
'core_context',
'core_context_test',
'node',
'page_manager',
];
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');
}
}