You are here

public function ContentLanguageSettingsUnitTest::testDefaultLangcode in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/language/tests/src/Unit/ContentLanguageSettingsUnitTest.php \Drupal\Tests\language\Unit\ContentLanguageSettingsUnitTest::testDefaultLangcode()

@covers ::getDefaultLangcode @covers ::setDefaultLangcode

@dataProvider providerDefaultLangcode

File

core/modules/language/tests/src/Unit/ContentLanguageSettingsUnitTest.php, line 148
Contains \Drupal\Tests\language\Unit\ContentLanguageSettingsUnitTest.

Class

ContentLanguageSettingsUnitTest
@coversDefaultClass \Drupal\language\Entity\ContentLanguageSettings @group language

Namespace

Drupal\Tests\language\Unit

Code

public function testDefaultLangcode(ContentLanguageSettings $config, $expected) {
  $this
    ->assertSame($expected, $config
    ->getDefaultLangcode());
}