function LanguageSelectorTranslatableTest::testContentTranslationPageTitle
Same name in other branches
- 11.x core/modules/language/tests/src/Functional/LanguageSelectorTranslatableTest.php \Drupal\Tests\language\Functional\LanguageSelectorTranslatableTest::testContentTranslationPageTitle()
Tests that correct title is displayed for content translation page.
File
-
core/
modules/ language/ tests/ src/ Functional/ LanguageSelectorTranslatableTest.php, line 99
Class
- LanguageSelectorTranslatableTest
- Tests the content translation settings language selector options.
Namespace
Drupal\Tests\language\FunctionalCode
public function testContentTranslationPageTitle() : void {
$this->drupalGet('admin/config/regional/content-language');
$this->assertSession()
->pageTextContains('Content language and translation');
$this->assertSession()
->pageTextNotMatches('#Content language$#');
\Drupal::service('module_installer')->uninstall([
'content_translation',
]);
$this->drupalGet('admin/config/regional/content-language');
$this->assertSession()
->pageTextContains('Content language');
$this->assertSession()
->pageTextNotContains('Content language and translation');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.