You are here

protected function LingotekSystemSiteBulkLocaleTranslationTest::setUp in Lingotek Translation 3.5.x

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/LingotekSystemSiteBulkLocaleTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekSystemSiteBulkLocaleTranslationTest::setUp()
  2. 4.0.x tests/src/Functional/LingotekSystemSiteBulkLocaleTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekSystemSiteBulkLocaleTranslationTest::setUp()
  3. 3.0.x tests/src/Functional/LingotekSystemSiteBulkLocaleTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekSystemSiteBulkLocaleTranslationTest::setUp()
  4. 3.1.x tests/src/Functional/LingotekSystemSiteBulkLocaleTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekSystemSiteBulkLocaleTranslationTest::setUp()
  5. 3.2.x tests/src/Functional/LingotekSystemSiteBulkLocaleTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekSystemSiteBulkLocaleTranslationTest::setUp()
  6. 3.3.x tests/src/Functional/LingotekSystemSiteBulkLocaleTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekSystemSiteBulkLocaleTranslationTest::setUp()
  7. 3.4.x tests/src/Functional/LingotekSystemSiteBulkLocaleTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekSystemSiteBulkLocaleTranslationTest::setUp()
  8. 3.6.x tests/src/Functional/LingotekSystemSiteBulkLocaleTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekSystemSiteBulkLocaleTranslationTest::setUp()
  9. 3.7.x tests/src/Functional/LingotekSystemSiteBulkLocaleTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekSystemSiteBulkLocaleTranslationTest::setUp()
  10. 3.8.x tests/src/Functional/LingotekSystemSiteBulkLocaleTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekSystemSiteBulkLocaleTranslationTest::setUp()

Overrides LingotekTestBase::setUp

File

tests/src/Functional/LingotekSystemSiteBulkLocaleTranslationTest.php, line 21

Class

LingotekSystemSiteBulkLocaleTranslationTest
Tests translating a config file into locales using the bulk management form.

Namespace

Drupal\Tests\lingotek\Functional

Code

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

  // Create a locale outside of Lingotek dashboard.
  ConfigurableLanguage::create([
    'id' => 'de-at',
    'label' => 'German (AT)',
  ])
    ->save();

  // Add locales.
  ConfigurableLanguage::createFromLangcode('es')
    ->setThirdPartySetting('lingotek', 'locale', 'es_AR')
    ->save();
  ConfigurableLanguage::createFromLangcode('es-es')
    ->setThirdPartySetting('lingotek', 'locale', 'es_ES')
    ->save();
}