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