public function LingotekNodeManageTranslationTabTest::testCorrectTargetsInNonSourceLanguage in Lingotek Translation 3.7.x
Same name and namespace in other branches
- 8.2 tests/src/Functional/LingotekNodeManageTranslationTabTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeManageTranslationTabTest::testCorrectTargetsInNonSourceLanguage()
- 4.0.x tests/src/Functional/LingotekNodeManageTranslationTabTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeManageTranslationTabTest::testCorrectTargetsInNonSourceLanguage()
- 3.0.x tests/src/Functional/LingotekNodeManageTranslationTabTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeManageTranslationTabTest::testCorrectTargetsInNonSourceLanguage()
- 3.1.x tests/src/Functional/LingotekNodeManageTranslationTabTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeManageTranslationTabTest::testCorrectTargetsInNonSourceLanguage()
- 3.2.x tests/src/Functional/LingotekNodeManageTranslationTabTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeManageTranslationTabTest::testCorrectTargetsInNonSourceLanguage()
- 3.3.x tests/src/Functional/LingotekNodeManageTranslationTabTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeManageTranslationTabTest::testCorrectTargetsInNonSourceLanguage()
- 3.4.x tests/src/Functional/LingotekNodeManageTranslationTabTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeManageTranslationTabTest::testCorrectTargetsInNonSourceLanguage()
- 3.5.x tests/src/Functional/LingotekNodeManageTranslationTabTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeManageTranslationTabTest::testCorrectTargetsInNonSourceLanguage()
- 3.6.x tests/src/Functional/LingotekNodeManageTranslationTabTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeManageTranslationTabTest::testCorrectTargetsInNonSourceLanguage()
- 3.8.x tests/src/Functional/LingotekNodeManageTranslationTabTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeManageTranslationTabTest::testCorrectTargetsInNonSourceLanguage()
File
- tests/
src/ Functional/ LingotekNodeManageTranslationTabTest.php, line 816
Class
- LingotekNodeManageTranslationTabTest
- Tests translating a node using the bulk management form.
Namespace
Drupal\Tests\lingotek\FunctionalCode
public function testCorrectTargetsInNonSourceLanguage() {
$this
->testNodeTranslationUsingLinks();
// Add a language.
ConfigurableLanguage::createFromLangcode('de')
->setThirdPartySetting('lingotek', 'locale', 'de_DE')
->save();
$this
->goToContentBulkManagementForm('node');
$this
->assertSourceStatus('EN', Lingotek::STATUS_CURRENT);
$this
->assertTargetStatus('ES', Lingotek::STATUS_CURRENT);
$this
->assertTargetStatus('DE', Lingotek::STATUS_REQUEST);
$this
->assertNoTargetStatus('EN', Lingotek::STATUS_CURRENT);
$this
->goToContentBulkManagementForm('node', 'es');
$this
->assertSourceStatus('EN', Lingotek::STATUS_CURRENT);
$this
->assertTargetStatus('ES', Lingotek::STATUS_CURRENT);
$this
->assertTargetStatus('DE', Lingotek::STATUS_REQUEST);
$this
->assertNoTargetStatus('EN', Lingotek::STATUS_CURRENT);
}