public function RecursiveContextualValidatorTest::testValidatePropertyWithInvalidObjects in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Core/TypedData/RecursiveContextualValidatorTest.php \Drupal\Tests\Core\TypedData\RecursiveContextualValidatorTest::testValidatePropertyWithInvalidObjects()
@covers ::validateProperty
@dataProvider providerTestValidatePropertyWithInvalidObjects
File
- core/
tests/ Drupal/ Tests/ Core/ TypedData/ RecursiveContextualValidatorTest.php, line 247 - Contains \Drupal\Tests\Core\TypedData\RecursiveContextualValidatorTest.
Class
- RecursiveContextualValidatorTest
- @coversDefaultClass \Drupal\Core\TypedData\Validation\RecursiveContextualValidator @group typedData
Namespace
Drupal\Tests\Core\TypedDataCode
public function testValidatePropertyWithInvalidObjects($object) {
$this
->expectException(\InvalidArgumentException::class);
$this->recursiveValidator
->validateProperty($object, 'key1', NULL);
}