function NodeTitleTest::setUp
Same name in other branches
- 9 core/modules/node/tests/src/Functional/NodeTitleTest.php \Drupal\Tests\node\Functional\NodeTitleTest::setUp()
- 10 core/modules/node/tests/src/Functional/NodeTitleTest.php \Drupal\Tests\node\Functional\NodeTitleTest::setUp()
- 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\FunctionalCode
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.