function ContentLanguageSettingsUnitTest::testDefaultLangcode

Tests default langcode.

@legacy-covers ::getDefaultLangcode @legacy-covers ::setDefaultLangcode

Attributes

#[DataProvider('providerDefaultLangcode')]

File

core/modules/language/tests/src/Unit/ContentLanguageSettingsUnitTest.php, line 162

Class

ContentLanguageSettingsUnitTest
Tests Drupal\language\Entity\ContentLanguageSettings.

Namespace

Drupal\Tests\language\Unit

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.