function TourValidationTest::setUp

Same name in other branches
  1. 10 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 24

Class

TourValidationTest
Tests validation of tour entities.

Namespace

Drupal\Tests\tour\Kernel

Code

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.