function ActionValidationTest::setUp

Same name in other branches
  1. 10 core/modules/system/tests/src/Kernel/Entity/ActionValidationTest.php \Drupal\Tests\system\Kernel\Entity\ActionValidationTest::setUp()

Overrides ConfigEntityValidationTestBase::setUp

File

core/modules/system/tests/src/Kernel/Entity/ActionValidationTest.php, line 26

Class

ActionValidationTest
Tests validation of action entities.

Namespace

Drupal\Tests\system\Kernel\Entity

Code

protected function setUp() : void {
    parent::setUp();
    $this->entity = Action::create([
        'id' => 'test',
        'label' => 'Test',
        'type' => 'test',
        'plugin' => 'action_goto_action',
    ]);
    $this->entity
        ->save();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.