protected function NodeTitleTest::setUp in Drupal 8
Same name and namespace in other branches
- 9 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');
}