public function ConfigurableLanguageManagerTest::testLanguageSwitchLinks in Drupal 9
Same name and namespace in other branches
- 8 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>'));
}