function DatetimeFormElementTest::setUp

Overrides EntityKernelTestBase::setUp

File

core/tests/Drupal/KernelTests/Core/Datetime/Element/DatetimeFormElementTest.php, line 43

Class

DatetimeFormElementTest
Tests static callbacks returns and form submission with datetime elements.

Namespace

Drupal\KernelTests\Core\Datetime\Element

Code

public function setUp() : void {
  parent::setUp();
  $this->installEntitySchema('date_format');
  $this->installConfig([
    'system',
  ]);
  $this->formBuilder = $this->container
    ->get('form_builder');
}

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