function ConfigurableLanguageManagerTest::testLanguageSwitchLinks
Same name in other branches
- 9 core/modules/language/tests/src/Kernel/ConfigurableLanguageManagerTest.php \Drupal\Tests\language\Kernel\ConfigurableLanguageManagerTest::testLanguageSwitchLinks()
- 10 core/modules/language/tests/src/Kernel/ConfigurableLanguageManagerTest.php \Drupal\Tests\language\Kernel\ConfigurableLanguageManagerTest::testLanguageSwitchLinks()
- 11.x core/modules/language/tests/src/Kernel/ConfigurableLanguageManagerTest.php \Drupal\Tests\language\Kernel\ConfigurableLanguageManagerTest::testLanguageSwitchLinks()
@covers ::getLanguageSwitchLinks
File
-
core/
modules/ language/ tests/ src/ Kernel/ ConfigurableLanguageManagerTest.php, line 50
Class
- ConfigurableLanguageManagerTest
- Tests the ConfigurableLanguage entity.
Namespace
Drupal\Tests\language\KernelCode
public function testLanguageSwitchLinks() {
$this->languageNegotiator
->setCurrentUser($this->prophesize('Drupal\\Core\\Session\\AccountInterface')
->reveal());
$this->languageManager
->getLanguageSwitchLinks(LanguageInterface::TYPE_INTERFACE, new Url('<current>'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.