function RecursiveContextualValidatorTest::testValidateWithGroups
Ensures that passing an explicit group is not supported.
@legacy-covers ::validate
File
-
core/
tests/ Drupal/ Tests/ Core/ TypedData/ RecursiveContextualValidatorTest.php, line 102
Class
- RecursiveContextualValidatorTest
- Tests Drupal\Core\TypedData\Validation\RecursiveContextualValidator.
Namespace
Drupal\Tests\Core\TypedDataCode
public function testValidateWithGroups() : void {
$this->expectException(\LogicException::class);
$this->recursiveValidator
->validate('test', NULL, 'test group');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.