function NodeBlockFunctionalTest::setUp

Same name in other branches
  1. 7.x modules/node/node.test \NodeBlockFunctionalTest::setUp()
  2. 9 core/modules/node/tests/src/Functional/NodeBlockFunctionalTest.php \Drupal\Tests\node\Functional\NodeBlockFunctionalTest::setUp()
  3. 10 core/modules/node/tests/src/Functional/NodeBlockFunctionalTest.php \Drupal\Tests\node\Functional\NodeBlockFunctionalTest::setUp()
  4. 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\Functional

Code

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.