public function BundleConstraintValidatorTest::testValidation in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/src/Tests/Entity/BundleConstraintValidatorTest.php \Drupal\system\Tests\Entity\BundleConstraintValidatorTest::testValidation()
Tests bundle constraint validation.
File
- core/
modules/ system/ src/ Tests/ Entity/ BundleConstraintValidatorTest.php, line 39 - Contains \Drupal\system\Tests\Entity\BundleConstraintValidatorTest.
Class
- BundleConstraintValidatorTest
- Tests validation constraints for BundleConstraintValidator.
Namespace
Drupal\system\Tests\EntityCode
public function testValidation() {
// Test with multiple values.
$this
->assertValidation(array(
'foo',
'bar',
));
// Test with a single string value as well.
$this
->assertValidation('foo');
}