function BlockContentTypeValidationTest::setUp

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

Overrides ConfigEntityValidationTestBase::setUp

File

core/modules/block_content/tests/src/Kernel/BlockContentTypeValidationTest.php, line 35

Class

BlockContentTypeValidationTest
Tests validation of block_content_type entities.

Namespace

Drupal\Tests\block_content\Kernel

Code

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

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