function UniqueValuesConstraintValidatorTest::setUp
Same name in other branches
- 11.x core/tests/Drupal/KernelTests/Core/Validation/UniqueValuesConstraintValidatorTest.php \Drupal\KernelTests\Core\Validation\UniqueValuesConstraintValidatorTest::setUp()
Tests cases where the validation passes for entities with string IDs.
@covers ::validate
Overrides KernelTestBase::setUp
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Validation/ UniqueValuesConstraintValidatorTest.php, line 35
Class
- UniqueValuesConstraintValidatorTest
- Tests the unique field value validation constraint.
Namespace
Drupal\KernelTests\Core\ValidationCode
protected function setUp() : void {
parent::setUp();
$this->setUpCurrentUser();
$this->installEntitySchema('entity_test_unique_constraint');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.