protected function LingotekContentTypeBulkLocaleTranslationTest::setUp in Lingotek Translation 4.0.x
Same name and namespace in other branches
- 8.2 tests/src/Functional/LingotekContentTypeBulkLocaleTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentTypeBulkLocaleTranslationTest::setUp()
- 3.0.x tests/src/Functional/LingotekContentTypeBulkLocaleTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentTypeBulkLocaleTranslationTest::setUp()
- 3.1.x tests/src/Functional/LingotekContentTypeBulkLocaleTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentTypeBulkLocaleTranslationTest::setUp()
- 3.2.x tests/src/Functional/LingotekContentTypeBulkLocaleTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentTypeBulkLocaleTranslationTest::setUp()
- 3.3.x tests/src/Functional/LingotekContentTypeBulkLocaleTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentTypeBulkLocaleTranslationTest::setUp()
- 3.4.x tests/src/Functional/LingotekContentTypeBulkLocaleTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentTypeBulkLocaleTranslationTest::setUp()
- 3.5.x tests/src/Functional/LingotekContentTypeBulkLocaleTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentTypeBulkLocaleTranslationTest::setUp()
- 3.6.x tests/src/Functional/LingotekContentTypeBulkLocaleTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentTypeBulkLocaleTranslationTest::setUp()
- 3.7.x tests/src/Functional/LingotekContentTypeBulkLocaleTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentTypeBulkLocaleTranslationTest::setUp()
- 3.8.x tests/src/Functional/LingotekContentTypeBulkLocaleTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentTypeBulkLocaleTranslationTest::setUp()
Overrides LingotekTestBase::setUp
File
- tests/
src/ Functional/ LingotekContentTypeBulkLocaleTranslationTest.php, line 22
Class
- LingotekContentTypeBulkLocaleTranslationTest
- Tests translating a config entity into locales using the bulk management form.
Namespace
Drupal\Tests\lingotek\FunctionalCode
protected function setUp() : void {
parent::setUp();
// Create Article node types.
$this
->drupalCreateContentType([
'type' => 'article',
'name' => 'Article',
]);
// Create a locale outside of Lingotek dashboard.
ConfigurableLanguage::create([
'id' => 'de-at',
'name' => 'German (AT)',
])
->save();
// Add locales.
ConfigurableLanguage::createFromLangcode('es')
->setThirdPartySetting('lingotek', 'locale', 'es_AR')
->save();
ConfigurableLanguage::createFromLangcode('es-es')
->setThirdPartySetting('lingotek', 'locale', 'es_ES')
->save();
$this
->saveLingotekConfigTranslationSettings([
'node_type' => 'automatic',
]);
// This is a hack for avoiding writing different lingotek endpoint mocks.
\Drupal::state()
->set('lingotek.uploaded_content_type', 'content_type');
}