protected function LingotekSystemSiteBulkLocaleTranslationTest::setUp in Lingotek Translation 3.6.x
Same name and namespace in other branches
- 8.2 tests/src/Functional/LingotekSystemSiteBulkLocaleTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekSystemSiteBulkLocaleTranslationTest::setUp()
- 4.0.x tests/src/Functional/LingotekSystemSiteBulkLocaleTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekSystemSiteBulkLocaleTranslationTest::setUp()
- 3.0.x tests/src/Functional/LingotekSystemSiteBulkLocaleTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekSystemSiteBulkLocaleTranslationTest::setUp()
- 3.1.x tests/src/Functional/LingotekSystemSiteBulkLocaleTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekSystemSiteBulkLocaleTranslationTest::setUp()
- 3.2.x tests/src/Functional/LingotekSystemSiteBulkLocaleTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekSystemSiteBulkLocaleTranslationTest::setUp()
- 3.3.x tests/src/Functional/LingotekSystemSiteBulkLocaleTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekSystemSiteBulkLocaleTranslationTest::setUp()
- 3.4.x tests/src/Functional/LingotekSystemSiteBulkLocaleTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekSystemSiteBulkLocaleTranslationTest::setUp()
- 3.5.x tests/src/Functional/LingotekSystemSiteBulkLocaleTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekSystemSiteBulkLocaleTranslationTest::setUp()
- 3.7.x tests/src/Functional/LingotekSystemSiteBulkLocaleTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekSystemSiteBulkLocaleTranslationTest::setUp()
- 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\FunctionalCode
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();
}