function ConfigTestValidationTest::setUp
Overrides ConfigEntityValidationTestBase::setUp
File
-
core/
modules/ config/ tests/ config_test/ tests/ src/ Kernel/ ConfigTestValidationTest.php, line 26
Class
- ConfigTestValidationTest
- Tests validation of config_test entities.
Namespace
Drupal\Tests\config_test\KernelCode
protected function setUp() : void {
parent::setUp();
$this->installConfig('config_test');
$this->entity = \Drupal::entityTypeManager()->getStorage('config_test')
->create([
'id' => 'test',
'label' => 'test',
]);
$this->entity
->save();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.