protected function NameUserTest::setUp in Name Field 8
Overrides KernelTestBase::setUp
File
- tests/
src/ Kernel/ NameUserTest.php, line 37
Class
- NameUserTest
- Tests the integration with user module.
Namespace
Drupal\Tests\name\KernelCode
protected function setUp() {
parent::setUp();
$this
->installConfig(self::$modules);
$this
->installSchema('system', [
'sequences',
]);
$this->entityListener = \Drupal::service('entity_type.listener');
$this->entityListener
->onEntityTypeCreate(\Drupal::entityTypeManager()
->getDefinition('user'));
}