function FieldConfigValidationTest::testRequiredPropertyKeysMissing
Same name in other branches
- 11.x core/modules/field/tests/src/Kernel/Entity/FieldConfigValidationTest.php \Drupal\Tests\field\Kernel\Entity\FieldConfigValidationTest::testRequiredPropertyKeysMissing()
Overrides ConfigEntityValidationTestBase::testRequiredPropertyKeysMissing
File
-
core/
modules/ field/ tests/ src/ Kernel/ Entity/ FieldConfigValidationTest.php, line 132
Class
- FieldConfigValidationTest
- Tests validation of field_config entities.
Namespace
Drupal\Tests\field\Kernel\EntityCode
public function testRequiredPropertyKeysMissing(?array $additional_expected_validation_errors_when_missing = NULL) : void {
parent::testRequiredPropertyKeysMissing([
'dependencies' => [
// @see ::testInvalidDependencies()
// @see \Drupal\Core\Config\Plugin\Validation\Constraint\RequiredConfigDependenciesConstraintValidator
'' => 'This field requires a field storage.',
],
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.