function EntityFormModeValidationTest::setUp
Overrides ConfigEntityValidationTestBase::setUp
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityFormModeValidationTest.php, line 26
Class
- EntityFormModeValidationTest
- Tests validation of entity_form_mode entities.
Namespace
Drupal\KernelTests\Core\EntityCode
protected function setUp() : void {
parent::setUp();
$this->installConfig('user');
$this->entity = EntityFormMode::create([
'id' => 'user.test',
'label' => 'Test',
'targetEntityType' => 'user',
]);
$this->entity
->save();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.