You are here

protected function NodeFieldOverridesTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/node/src/Tests/NodeFieldOverridesTest.php \Drupal\node\Tests\NodeFieldOverridesTest::setUp()

Performs setup tasks before each individual test method is run.

Overrides EntityUnitTestBase::setUp

File

core/modules/node/src/Tests/NodeFieldOverridesTest.php, line 39
Contains \Drupal\node\Tests\NodeFieldOverridesTest.

Class

NodeFieldOverridesTest
Tests node field overrides.

Namespace

Drupal\node\Tests

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installConfig(array(
    'user',
  ));
  $this->user = $this
    ->createUser();
  \Drupal::service('current_user')
    ->setAccount($this->user);
}