public function LingotekContentTypeBulkTranslationTest::testAddingLanguageAllowsRequesting in Lingotek Translation 3.1.x
Same name and namespace in other branches
- 8.2 tests/src/Functional/LingotekContentTypeBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentTypeBulkTranslationTest::testAddingLanguageAllowsRequesting()
- 4.0.x tests/src/Functional/LingotekContentTypeBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentTypeBulkTranslationTest::testAddingLanguageAllowsRequesting()
- 3.0.x tests/src/Functional/LingotekContentTypeBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentTypeBulkTranslationTest::testAddingLanguageAllowsRequesting()
- 3.2.x tests/src/Functional/LingotekContentTypeBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentTypeBulkTranslationTest::testAddingLanguageAllowsRequesting()
- 3.3.x tests/src/Functional/LingotekContentTypeBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentTypeBulkTranslationTest::testAddingLanguageAllowsRequesting()
- 3.4.x tests/src/Functional/LingotekContentTypeBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentTypeBulkTranslationTest::testAddingLanguageAllowsRequesting()
- 3.5.x tests/src/Functional/LingotekContentTypeBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentTypeBulkTranslationTest::testAddingLanguageAllowsRequesting()
- 3.6.x tests/src/Functional/LingotekContentTypeBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentTypeBulkTranslationTest::testAddingLanguageAllowsRequesting()
- 3.7.x tests/src/Functional/LingotekContentTypeBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentTypeBulkTranslationTest::testAddingLanguageAllowsRequesting()
- 3.8.x tests/src/Functional/LingotekContentTypeBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentTypeBulkTranslationTest::testAddingLanguageAllowsRequesting()
Tests that a config can be translated using the links on the management page.
1 call to LingotekContentTypeBulkTranslationTest::testAddingLanguageAllowsRequesting()
- LingotekContentTypeBulkTranslationTest::testFormWorksAfterRemovingLanguageWithStatuses in tests/
src/ Functional/ LingotekContentTypeBulkTranslationTest.php - Tests that a config can be translated using the links on the management page.
File
- tests/
src/ Functional/ LingotekContentTypeBulkTranslationTest.php, line 357
Class
- LingotekContentTypeBulkTranslationTest
- Tests translating a config entity using the bulk management form.
Namespace
Drupal\Tests\lingotek\FunctionalCode
public function testAddingLanguageAllowsRequesting() {
$assert_session = $this
->assertSession();
// We need a node with translations first.
$this
->testContentTypeTranslationUsingLinks();
// Add a language.
ConfigurableLanguage::createFromLangcode('ca')
->save();
// Go to the bulk config management page.
$this
->goToConfigBulkManagementForm('node_type');
$basepath = \Drupal::request()
->getBasePath();
// There is a link for requesting the Catalan translation.
$assert_session
->linkByHrefExists($basepath . '/admin/lingotek/config/request/node_type/article/ca_ES?destination=' . $basepath . '/admin/lingotek/config/manage');
$this
->clickLink('CA');
$this
->assertText("Translation to ca_ES requested successfully");
}