You are here

protected function UserNameFormatterTest::setUp in Drupal 10

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

Overrides KernelTestBase::setUp

File

core/modules/user/tests/src/Kernel/Field/UserNameFormatterTest.php, line 42

Class

UserNameFormatterTest
Tests the user_name formatter.

Namespace

Drupal\Tests\user\Kernel\Field

Code

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