You are here

protected function NameAutocompleteTest::setUp in Name Field 8

Overrides KernelTestBase::setUp

File

tests/src/Kernel/NameAutocompleteTest.php, line 49

Class

NameAutocompleteTest
Tests name autocomplete.

Namespace

Drupal\Tests\name\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installConfig(self::$modules);
  $this->entityListener = \Drupal::service('entity_type.listener');
  $this->entityListener
    ->onEntityTypeCreate(\Drupal::entityTypeManager()
    ->getDefinition('entity_test'));
  $this->field = $this
    ->createNameField('field_name_test', 'entity_test', 'entity_test');
}