protected function NodeBlockFunctionalTest::setUp in Drupal 9
Same name and namespace in other branches
- 8 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 47
Class
- NodeBlockFunctionalTest
- Tests node block functionality.
Namespace
Drupal\Tests\node\FunctionalCode
protected function setUp() : void {
parent::setUp();
// Create users and test node.
$this->adminUser = $this
->drupalCreateUser([
'administer content types',
'administer nodes',
'bypass node access',
'administer blocks',
'access content overview',
]);
$this->webUser = $this
->drupalCreateUser([
'access content',
'create article content',
]);
}