You are here

protected function NodeEditFormTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/node/tests/src/Functional/NodeEditFormTest.php \Drupal\Tests\node\Functional\NodeEditFormTest::setUp()

Overrides NodeTestBase::setUp

File

core/modules/node/tests/src/Functional/NodeEditFormTest.php, line 48

Class

NodeEditFormTest
Create a node and test node edit functionality.

Namespace

Drupal\Tests\node\Functional

Code

protected function setUp() {
  parent::setUp();
  $this->webUser = $this
    ->drupalCreateUser([
    'edit own page content',
    'create page content',
  ]);
  $this->adminUser = $this
    ->drupalCreateUser([
    'bypass node access',
    'administer nodes',
  ]);
  $this
    ->drupalPlaceBlock('local_tasks_block');
  $this->nodeStorage = $this->container
    ->get('entity_type.manager')
    ->getStorage('node');
}