function AdminPathEntityConverterLanguageTest::testConfigUsingCurrentLanguage
Same name in other branches
- 9 core/modules/language/tests/src/Functional/AdminPathEntityConverterLanguageTest.php \Drupal\Tests\language\Functional\AdminPathEntityConverterLanguageTest::testConfigUsingCurrentLanguage()
- 8.9.x core/modules/language/tests/src/Functional/AdminPathEntityConverterLanguageTest.php \Drupal\Tests\language\Functional\AdminPathEntityConverterLanguageTest::testConfigUsingCurrentLanguage()
- 11.x core/modules/language/tests/src/Functional/AdminPathEntityConverterLanguageTest.php \Drupal\Tests\language\Functional\AdminPathEntityConverterLanguageTest::testConfigUsingCurrentLanguage()
Tests the translated and untranslated config entities are loaded properly.
File
-
core/
modules/ language/ tests/ src/ Functional/ AdminPathEntityConverterLanguageTest.php, line 43
Class
- AdminPathEntityConverterLanguageTest
- Test administration path based conversion of entities.
Namespace
Drupal\Tests\language\FunctionalCode
public function testConfigUsingCurrentLanguage() : void {
\Drupal::languageManager()->getLanguageConfigOverride('es', 'language.entity.es')
->set('label', 'Español')
->save();
$this->drupalGet('es/admin/language_test/entity_using_current_language/es');
$this->assertSession()
->pageTextNotContains('Loaded Spanish.');
$this->assertSession()
->pageTextContains('Loaded Español.');
$this->drupalGet('es/admin/language_test/entity_using_original_language/es');
$this->assertSession()
->pageTextContains('Loaded Spanish.');
$this->assertSession()
->pageTextNotContains('Loaded Español.');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.