function RecursiveContextualValidatorTest::testValidatePropertyWithCustomGroup
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/TypedData/RecursiveContextualValidatorTest.php \Drupal\Tests\Core\TypedData\RecursiveContextualValidatorTest::testValidatePropertyWithCustomGroup()
- 8.9.x core/tests/Drupal/Tests/Core/TypedData/RecursiveContextualValidatorTest.php \Drupal\Tests\Core\TypedData\RecursiveContextualValidatorTest::testValidatePropertyWithCustomGroup()
- 10 core/tests/Drupal/Tests/Core/TypedData/RecursiveContextualValidatorTest.php \Drupal\Tests\Core\TypedData\RecursiveContextualValidatorTest::testValidatePropertyWithCustomGroup()
@covers ::validateProperty
File
-
core/
tests/ Drupal/ Tests/ Core/ TypedData/ RecursiveContextualValidatorTest.php, line 230
Class
- RecursiveContextualValidatorTest
- @coversDefaultClass \Drupal\Core\TypedData\Validation\RecursiveContextualValidator @group TypedData
Namespace
Drupal\Tests\Core\TypedDataCode
public function testValidatePropertyWithCustomGroup() : void {
$tree = [
'value' => [],
'properties' => [
'key1' => [
'value' => 'value1',
],
],
];
$typed_data = $this->setupTypedData($tree, 'test_name');
$this->expectException(\LogicException::class);
$this->recursiveValidator
->validateProperty($typed_data, 'key1', 'test group');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.