function ValidReferenceConstraintValidatorTest::setUp
Same name in other branches
- 8.9.x core/tests/Drupal/KernelTests/Core/Entity/ValidReferenceConstraintValidatorTest.php \Drupal\KernelTests\Core\Entity\ValidReferenceConstraintValidatorTest::setUp()
- 10 core/tests/Drupal/KernelTests/Core/Entity/ValidReferenceConstraintValidatorTest.php \Drupal\KernelTests\Core\Entity\ValidReferenceConstraintValidatorTest::setUp()
- 11.x core/tests/Drupal/KernelTests/Core/Entity/ValidReferenceConstraintValidatorTest.php \Drupal\KernelTests\Core\Entity\ValidReferenceConstraintValidatorTest::setUp()
Overrides EntityKernelTestBase::setUp
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Entity/ ValidReferenceConstraintValidatorTest.php, line 41
Class
- ValidReferenceConstraintValidatorTest
- Tests validation constraints for ValidReferenceConstraintValidator.
Namespace
Drupal\KernelTests\Core\EntityCode
protected function setUp() : void {
parent::setUp();
$this->installSchema('user', [
'users_data',
]);
$this->installSchema('node', [
'node_access',
]);
$this->installConfig('node');
$this->typedData = $this->container
->get('typed_data_manager');
$this->createContentType([
'type' => 'article',
'name' => 'Article',
]);
$this->createContentType([
'type' => 'page',
'name' => 'Basic page',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.