You are here

public function NameOptionsProviderTest::setUp in Name Field 8

Overrides NameTestBase::setUp

File

tests/src/Functional/NameOptionsProviderTest.php, line 46

Class

NameOptionsProviderTest
Tests NameOptionsProvider class.

Namespace

Drupal\Tests\name\Functional

Code

public function setUp() {
  parent::setUp();
  $this->entityListener = \Drupal::service('entity_type.listener');
  $this->entityListener
    ->onEntityTypeCreate(\Drupal::entityTypeManager()
    ->getDefinition('taxonomy_term'));
  $this->optionsProvider = \Drupal::service('name.options_provider');
}