function TourValidationTest::setUp
Same name in other branches
- 11.x core/modules/tour/tests/src/Kernel/TourValidationTest.php \Drupal\Tests\tour\Kernel\TourValidationTest::setUp()
Overrides ConfigEntityValidationTestBase::setUp
File
-
core/
modules/ tour/ tests/ src/ Kernel/ TourValidationTest.php, line 26
Class
- TourValidationTest
- Tests validation of tour entities.
Namespace
Drupal\Tests\tour\KernelCode
protected function setUp() : void {
parent::setUp();
$this->entity = Tour::create([
'id' => 'test',
'label' => 'Test',
'module' => 'system',
]);
$this->entity
->save();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.