function NodeTypeValidationTest::setUp

Same name and namespace in other branches
  1. 10 core/modules/node/tests/src/Kernel/NodeTypeValidationTest.php \Drupal\Tests\node\Kernel\NodeTypeValidationTest::setUp()

Overrides ConfigEntityValidationTestBase::setUp

File

core/modules/node/tests/src/Kernel/NodeTypeValidationTest.php, line 35

Class

NodeTypeValidationTest
Tests validation of node_type entities.

Namespace

Drupal\Tests\node\Kernel

Code

protected function setUp() : void {
    parent::setUp();
    $this->installConfig('node');
    $this->entity = $this->createContentType();
}

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