You are here

protected function NodeBlockFunctionalTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 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',
  ]);
}