function EntityHasFieldConstraintValidatorTest::setUp

Same name in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Entity/EntityHasFieldConstraintValidatorTest.php \Drupal\KernelTests\Core\Entity\EntityHasFieldConstraintValidatorTest::setUp()
  2. 8.9.x core/tests/Drupal/KernelTests/Core/Entity/EntityHasFieldConstraintValidatorTest.php \Drupal\KernelTests\Core\Entity\EntityHasFieldConstraintValidatorTest::setUp()
  3. 11.x core/tests/Drupal/KernelTests/Core/Entity/EntityHasFieldConstraintValidatorTest.php \Drupal\KernelTests\Core\Entity\EntityHasFieldConstraintValidatorTest::setUp()

Overrides EntityKernelTestBase::setUp

File

core/tests/Drupal/KernelTests/Core/Entity/EntityHasFieldConstraintValidatorTest.php, line 25

Class

EntityHasFieldConstraintValidatorTest
@covers \Drupal\Core\Entity\Plugin\Validation\Constraint\EntityHasFieldConstraintValidator

Namespace

Drupal\KernelTests\Core\Entity

Code

protected function setUp() : void {
    parent::setUp();
    $this->installEntitySchema('entity_test_constraints');
    $this->createUser();
}

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