function NodeBlockFunctionalTest::setUp
Same name in other branches
- 7.x modules/node/node.test \NodeBlockFunctionalTest::setUp()
- 9 core/modules/node/tests/src/Functional/NodeBlockFunctionalTest.php \Drupal\Tests\node\Functional\NodeBlockFunctionalTest::setUp()
- 10 core/modules/node/tests/src/Functional/NodeBlockFunctionalTest.php \Drupal\Tests\node\Functional\NodeBlockFunctionalTest::setUp()
- 11.x core/modules/node/tests/src/Functional/NodeBlockFunctionalTest.php \Drupal\Tests\node\Functional\NodeBlockFunctionalTest::setUp()
Overrides NodeTestBase::setUp
File
-
core/
modules/ node/ tests/ src/ Functional/ NodeBlockFunctionalTest.php, line 46
Class
- NodeBlockFunctionalTest
- Tests node block functionality.
Namespace
Drupal\Tests\node\FunctionalCode
protected function setUp() {
parent::setUp();
// Create users and test node.
$this->adminUser = $this->drupalCreateUser([
'administer content types',
'administer nodes',
'administer blocks',
'access content overview',
]);
$this->webUser = $this->drupalCreateUser([
'access content',
'create article content',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.