function ConfigEntityValidationTestBaseUnsharedTest::setUp

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/KernelTests/Core/Config/ConfigEntityValidationTestBaseUnsharedTest.php \Drupal\KernelTests\Core\Config\ConfigEntityValidationTestBaseUnsharedTest::setUp()

File

core/tests/Drupal/KernelTests/Core/Config/ConfigEntityValidationTestBaseUnsharedTest.php, line 30

Class

ConfigEntityValidationTestBaseUnsharedTest
Tests a subclass that does not share its environment.

Namespace

Drupal\KernelTests\Core\Config

Code

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

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