You are here

public function LingotekNodeBulkTranslationTest::testAddingLanguageAllowsRequesting in Lingotek Translation 4.0.x

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

Tests that a node can be translated using the links on the management page.

1 call to LingotekNodeBulkTranslationTest::testAddingLanguageAllowsRequesting()
LingotekNodeBulkTranslationTest::testFormWorksAfterRemovingLanguageWithStatuses in tests/src/Functional/LingotekNodeBulkTranslationTest.php
Tests that a config can be translated using the links on the management page.

File

tests/src/Functional/LingotekNodeBulkTranslationTest.php, line 723

Class

LingotekNodeBulkTranslationTest
Tests translating a node using the bulk management form.

Namespace

Drupal\Tests\lingotek\Functional

Code

public function testAddingLanguageAllowsRequesting() {

  // We need a node with translations first.
  $this
    ->testNodeTranslationUsingLinks();

  // Add a language.
  ConfigurableLanguage::createFromLangcode('ca')
    ->save();
  $this
    ->goToContentBulkManagementForm();

  // There is a link for requesting the Catalan translation.
  $this
    ->assertLingotekRequestTranslationLink('ca_ES');
  $this
    ->clickLink('CA');
  $this
    ->assertText("Locale 'ca_ES' was added as a translation target for node Llamas are cool.");
}