You are here

public function ContentLanguageSettingsUnitTest::testLanguageAlterable in Drupal 9

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

@covers ::setLanguageAlterable @covers ::isLanguageAlterable

@dataProvider providerLanguageAlterable

File

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

Class

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

Namespace

Drupal\Tests\language\Unit

Code

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