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