public function ConfigSourceUnitTest::setUp

Overrides TMGMTKernelTestBase::setUp

File

sources/tmgmt_config/tests/src/Kernel/ConfigSourceUnitTest.php, line 27

Class

ConfigSourceUnitTest
Unit tests for exporting translatable data from config entities and saving it back.

Namespace

Drupal\Tests\tmgmt_config\Kernel

Code

public function setUp() : void {
  parent::setUp();

  // Add the languages.
  $this
    ->installConfig([
    'language',
  ]);
  $this
    ->installEntitySchema('tmgmt_job');
  $this
    ->installEntitySchema('tmgmt_job_item');
  $this
    ->installEntitySchema('tmgmt_message');
  $this
    ->installSchema('locale', array(
    'locales_location',
    'locales_source',
    'locales_target',
  ));
  \Drupal::service('router.builder')
    ->rebuild();
  tmgmt_translator_auto_create(\Drupal::service('plugin.manager.tmgmt.translator')
    ->getDefinition('test_translator'));
}