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
Namespace
Drupal\Tests\language\UnitCode
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.