function RecursiveContextualValidatorTest::testValidatePropertyValueWithInvalidObjects
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/TypedData/RecursiveContextualValidatorTest.php \Drupal\Tests\Core\TypedData\RecursiveContextualValidatorTest::testValidatePropertyValueWithInvalidObjects()
- 8.9.x core/tests/Drupal/Tests/Core/TypedData/RecursiveContextualValidatorTest.php \Drupal\Tests\Core\TypedData\RecursiveContextualValidatorTest::testValidatePropertyValueWithInvalidObjects()
- 10 core/tests/Drupal/Tests/Core/TypedData/RecursiveContextualValidatorTest.php \Drupal\Tests\Core\TypedData\RecursiveContextualValidatorTest::testValidatePropertyValueWithInvalidObjects()
@covers ::validatePropertyValue
@dataProvider providerTestValidatePropertyWithInvalidObjects
File
-
core/
tests/ Drupal/ Tests/ Core/ TypedData/ RecursiveContextualValidatorTest.php, line 286
Class
- RecursiveContextualValidatorTest
- @coversDefaultClass \Drupal\Core\TypedData\Validation\RecursiveContextualValidator @group TypedData
Namespace
Drupal\Tests\Core\TypedDataCode
public function testValidatePropertyValueWithInvalidObjects($object) : void {
$this->expectException(\InvalidArgumentException::class);
$this->recursiveValidator
->validatePropertyValue($object, 'key1', [], NULL);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.