function ConfigurableLanguageManagerTest::testLanguageSwitchLinks

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

Code

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.