You are here

public function LingotekNodeManageTranslationTabTest::testCorrectTargetsInNonSourceLanguage in Lingotek Translation 4.0.x

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/LingotekNodeManageTranslationTabTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeManageTranslationTabTest::testCorrectTargetsInNonSourceLanguage()
  2. 3.0.x tests/src/Functional/LingotekNodeManageTranslationTabTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeManageTranslationTabTest::testCorrectTargetsInNonSourceLanguage()
  3. 3.1.x tests/src/Functional/LingotekNodeManageTranslationTabTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeManageTranslationTabTest::testCorrectTargetsInNonSourceLanguage()
  4. 3.2.x tests/src/Functional/LingotekNodeManageTranslationTabTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeManageTranslationTabTest::testCorrectTargetsInNonSourceLanguage()
  5. 3.3.x tests/src/Functional/LingotekNodeManageTranslationTabTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeManageTranslationTabTest::testCorrectTargetsInNonSourceLanguage()
  6. 3.4.x tests/src/Functional/LingotekNodeManageTranslationTabTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeManageTranslationTabTest::testCorrectTargetsInNonSourceLanguage()
  7. 3.5.x tests/src/Functional/LingotekNodeManageTranslationTabTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeManageTranslationTabTest::testCorrectTargetsInNonSourceLanguage()
  8. 3.6.x tests/src/Functional/LingotekNodeManageTranslationTabTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeManageTranslationTabTest::testCorrectTargetsInNonSourceLanguage()
  9. 3.7.x tests/src/Functional/LingotekNodeManageTranslationTabTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeManageTranslationTabTest::testCorrectTargetsInNonSourceLanguage()
  10. 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\Functional

Code

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);
}