function ContentLanguageSettingsValidationTest::testImmutableProperties

Same name and namespace in other branches
  1. 11.x core/modules/language/tests/src/Kernel/ContentLanguageSettingsValidationTest.php \Drupal\Tests\language\Kernel\ContentLanguageSettingsValidationTest::testImmutableProperties()

Tests that immutable properties cannot be changed.

Parameters

mixed[] $valid_values: (optional) The values to set for the immutable properties, keyed by name. This should be used if the immutable properties can only accept certain values, e.g. valid plugin IDs.

Overrides ConfigEntityValidationTestBase::testImmutableProperties

File

core/modules/language/tests/src/Kernel/ContentLanguageSettingsValidationTest.php, line 73

Class

ContentLanguageSettingsValidationTest
Tests validation of content_language_settings entities.

Namespace

Drupal\Tests\language\Kernel

Code

public function testImmutableProperties(array $valid_values = []) : void {
    parent::testImmutableProperties([
        'target_entity_type_id' => 'entity_test_with_bundle',
        'target_bundle' => 'bravo',
    ]);
}

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