You are here

protected function UserNameFormatterTest::setUp in Zircon Profile 8

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

Performs setup tasks before each individual test method is run.

Overrides KernelTestBase::setUp

File

core/modules/user/src/Tests/Field/UserNameFormatterTest.php, line 47
Contains \Drupal\user\Tests\Field\UserNameFormatterTest.

Class

UserNameFormatterTest
Tests the user_name formatter.

Namespace

Drupal\user\Tests\Field

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installConfig([
    'field',
  ]);
  $this
    ->installEntitySchema('user');
  $this
    ->installSchema('system', [
    'sequences',
  ]);
  $this->entityType = 'user';
  $this->bundle = $this->entityType;
  $this->fieldName = 'name';
}