You are here

protected function FieldWidgetConstraintValidatorTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Entity/FieldWidgetConstraintValidatorTest.php \Drupal\KernelTests\Core\Entity\FieldWidgetConstraintValidatorTest::setUp()

Overrides KernelTestBase::setUp

File

core/tests/Drupal/KernelTests/Core/Entity/FieldWidgetConstraintValidatorTest.php, line 29

Class

FieldWidgetConstraintValidatorTest
Tests validation constraints for FieldWidgetConstraintValidatorTest.

Namespace

Drupal\KernelTests\Core\Entity

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installSchema('system', [
    'key_value',
  ]);
  $this->container
    ->get('router.builder')
    ->rebuild();
  $this
    ->installEntitySchema('user');
  $this
    ->installEntitySchema('entity_test_composite_constraint');
}