You are here

protected function BundleConstraintValidatorTest::setUp in Drupal 9

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

Overrides KernelTestBase::setUp

File

core/tests/Drupal/KernelTests/Core/Entity/BundleConstraintValidatorTest.php, line 24

Class

BundleConstraintValidatorTest
Tests validation constraints for BundleConstraintValidator.

Namespace

Drupal\KernelTests\Core\Entity

Code

protected function setUp() : void {
  parent::setUp();
  $this
    ->installEntitySchema('user');
  $this->typedData = $this->container
    ->get('typed_data_manager');
}