function NodeTypeValidationTest::setUp

Same name and namespace in other branches
  1. 11.x core/modules/node/tests/src/Kernel/NodeTypeValidationTest.php \Drupal\Tests\node\Kernel\NodeTypeValidationTest::setUp()
  2. main 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 36

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.