public function ConfigSourceWebformTest::setUp

Overrides TMGMTKernelTestBase::setUp

File

sources/tmgmt_config/tests/src/Kernel/ConfigSourceWebformTest.php, line 26

Class

ConfigSourceWebformTest
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();

  // Install webform default configuration.
  $this
    ->installSchema('webform', [
    'webform',
  ]);
  $this
    ->installConfig([
    'webform',
  ]);
  tmgmt_translator_auto_create(\Drupal::service('plugin.manager.tmgmt.translator')
    ->getDefinition('test_translator'));
}