function EntityFormModeValidationTest::testMachineNameLength
Tests that the entity ID's length is validated if it is a machine name.
Parameters
string $prefix: Prefix for machine name.
Overrides ConfigEntityValidationTestBase::testMachineNameLength
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityFormModeValidationTest.php, line 72
Class
- EntityFormModeValidationTest
- Tests validation of entity_form_mode entities.
Namespace
Drupal\KernelTests\Core\EntityCode
public function testMachineNameLength(string $prefix = '') : void {
// Entity form mode IDs are prefixed by an entity type ID.
parent::testMachineNameLength('test.');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.