function ContactFormValidationTest::setUpEnvironment
Overrides ConfigEntityValidationTestBase::setUpEnvironment
File
-
core/
modules/ contact/ tests/ src/ Kernel/ ContactFormValidationTest.php, line 34
Class
- ContactFormValidationTest
- Tests validation of contact_form entities.
Namespace
Drupal\Tests\contact\KernelCode
protected function setUpEnvironment() : void {
parent::setUpEnvironment();
$this->entity = ContactForm::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.