function NodeBlockFunctionalTest::setUp
Same name in other branches
- 9 core/modules/node/tests/src/Functional/NodeBlockFunctionalTest.php \Drupal\Tests\node\Functional\NodeBlockFunctionalTest::setUp()
- 8.9.x 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 DrupalWebTestCase::setUp
File
-
modules/
node/ node.test, line 2058
Class
- NodeBlockFunctionalTest
- Functional tests for the node module blocks.
Code
function setUp() {
parent::setUp('node', 'block');
// Create users and test node.
$this->admin_user = $this->drupalCreateUser(array(
'administer content types',
'administer nodes',
'administer blocks',
));
$this->web_user = $this->drupalCreateUser(array(
'access content',
'create article content',
));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.