function ContactFormValidationTest::setUp
Same name in other branches
- 11.x core/modules/contact/tests/src/Kernel/ContactFormValidationTest.php \Drupal\Tests\contact\Kernel\ContactFormValidationTest::setUp()
Overrides ConfigEntityValidationTestBase::setUp
File
-
core/
modules/ contact/ tests/ src/ Kernel/ ContactFormValidationTest.php, line 27
Class
- ContactFormValidationTest
- Tests validation of contact_form entities.
Namespace
Drupal\Tests\contact\KernelCode
protected function setUp() : void {
parent::setUp();
$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.