You are here

protected function FieldWidgetConstraintValidatorTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/Entity/FieldWidgetConstraintValidatorTest.php \Drupal\system\Tests\Entity\FieldWidgetConstraintValidatorTest::setUp()

Performs setup tasks before each individual test method is run.

Overrides KernelTestBase::setUp

File

core/modules/system/src/Tests/Entity/FieldWidgetConstraintValidatorTest.php, line 29
Contains \Drupal\system\Tests\Entity\FieldWidgetConstraintValidatorTest.

Class

FieldWidgetConstraintValidatorTest
Tests validation constraints for FieldWidgetConstraintValidatorTest.

Namespace

Drupal\system\Tests\Entity

Code

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