You are here

protected function PageTitleTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/System/PageTitleTest.php \Drupal\system\Tests\System\PageTitleTest::setUp()

Implement setUp().

Overrides WebTestBase::setUp

File

core/modules/system/src/Tests/System/PageTitleTest.php, line 34
Contains \Drupal\system\Tests\System\PageTitleTest.

Class

PageTitleTest
Tests HTML output escaping of page title, site name, and slogan.

Namespace

Drupal\system\Tests\System

Code

protected function setUp() {
  parent::setUp();
  $this
    ->drupalCreateContentType(array(
    'type' => 'page',
    'name' => 'Basic page',
  ));
  $this
    ->drupalPlaceBlock('page_title_block');
  $this->contentUser = $this
    ->drupalCreateUser(array(
    'create page content',
    'access content',
    'administer themes',
    'administer site configuration',
    'link to any page',
  ));
  $this
    ->drupalLogin($this->contentUser);
}