function FieldStorageConfigValidationTest::testImmutableProperties
Same name and namespace in other branches
- 11.x core/modules/field/tests/src/Kernel/Entity/FieldStorageConfigValidationTest.php \Drupal\Tests\field\Kernel\Entity\FieldStorageConfigValidationTest::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/ field/ tests/ src/ Kernel/ Entity/ FieldStorageConfigValidationTest.php, line 41
Class
- FieldStorageConfigValidationTest
- Tests validation of field_storage_config entities.
Namespace
Drupal\Tests\field\Kernel\EntityCode
public function testImmutableProperties(array $valid_values = []) : void {
$valid_values['type'] = 'string';
parent::testImmutableProperties($valid_values);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.