function NodeEditFormTest::setUp
Same name in other branches
- 8.9.x core/modules/node/tests/src/Functional/NodeEditFormTest.php \Drupal\Tests\node\Functional\NodeEditFormTest::setUp()
- 10 core/modules/node/tests/src/Functional/NodeEditFormTest.php \Drupal\Tests\node\Functional\NodeEditFormTest::setUp()
- 11.x core/modules/node/tests/src/Functional/NodeEditFormTest.php \Drupal\Tests\node\Functional\NodeEditFormTest::setUp()
Overrides NodeTestBase::setUp
File
-
core/
modules/ node/ tests/ src/ Functional/ NodeEditFormTest.php, line 51
Class
- NodeEditFormTest
- Create a node and test node edit functionality.
Namespace
Drupal\Tests\node\FunctionalCode
protected function setUp() : void {
parent::setUp();
$this->webUser = $this->drupalCreateUser([
'edit own page content',
'create page content',
]);
$this->adminUser = $this->drupalCreateUser([
'bypass node access',
'administer nodes',
]);
$this->drupalPlaceBlock('local_tasks_block');
$this->nodeStorage = $this->container
->get('entity_type.manager')
->getStorage('node');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.