You are here

public function ConfigurableLanguageManagerTest::testLanguageSwitchLinks in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/language/tests/src/Kernel/ConfigurableLanguageManagerTest.php \Drupal\Tests\language\Kernel\ConfigurableLanguageManagerTest::testLanguageSwitchLinks()
  2. 9 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\Kernel

Code

public function testLanguageSwitchLinks() {
  $this->languageNegotiator
    ->setCurrentUser($this
    ->prophesize('Drupal\\Core\\Session\\AccountInterface')
    ->reveal());
  $this->languageManager
    ->getLanguageSwitchLinks(LanguageInterface::TYPE_INTERFACE, new Url('<current>'));
}