function UserNameFormatterTest::setUp
Same name in other branches
- 9 core/modules/user/tests/src/Kernel/Field/UserNameFormatterTest.php \Drupal\Tests\user\Kernel\Field\UserNameFormatterTest::setUp()
- 8.9.x core/modules/user/tests/src/Kernel/Field/UserNameFormatterTest.php \Drupal\Tests\user\Kernel\Field\UserNameFormatterTest::setUp()
- 11.x 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\FieldCode
protected function setUp() : void {
parent::setUp();
$this->installConfig([
'field',
]);
$this->installEntitySchema('user');
$this->entityType = 'user';
$this->bundle = $this->entityType;
$this->fieldName = 'name';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.