You are here

public function DisableLanguageManagerTest::testGetConfigurableLanguages in Disable language 8

Test getConfigurableLanguages method.

File

tests/src/Kernel/DisableLanguageManagerTest.php, line 53

Class

DisableLanguageManagerTest
@coversDefaultClass \Drupal\disable_language\DisableLanguageManager @group disable_language

Namespace

Drupal\Tests\disable_language\Kernel

Code

public function testGetConfigurableLanguages() {
  $available_languages = \Drupal::languageManager()
    ->getLanguages();
  $configurable_languages = $this->disableLanguageManager
    ->getConfigurableLanguages();
  $this
    ->assertEquals(array_keys($available_languages), array_keys($configurable_languages));
}