function NodeTitleTest::setUp

Same name in other branches
  1. 9 core/modules/node/tests/src/Functional/NodeTitleTest.php \Drupal\Tests\node\Functional\NodeTitleTest::setUp()
  2. 10 core/modules/node/tests/src/Functional/NodeTitleTest.php \Drupal\Tests\node\Functional\NodeTitleTest::setUp()
  3. 11.x core/modules/node/tests/src/Functional/NodeTitleTest.php \Drupal\Tests\node\Functional\NodeTitleTest::setUp()

Overrides NodeTestBase::setUp

File

core/modules/node/tests/src/Functional/NodeTitleTest.php, line 39

Class

NodeTitleTest
Tests node title.

Namespace

Drupal\Tests\node\Functional

Code

protected function setUp() {
    parent::setUp();
    $this->drupalPlaceBlock('system_breadcrumb_block');
    $this->drupalPlaceBlock('page_title_block');
    $this->adminUser = $this->drupalCreateUser([
        'administer nodes',
        'create article content',
        'create page content',
        'post comments',
    ]);
    $this->drupalLogin($this->adminUser);
    $this->addDefaultCommentField('node', 'page');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.