function 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.