You are here

public function RecursiveContextualValidatorTest::testValidateWithGroups in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/TypedData/RecursiveContextualValidatorTest.php \Drupal\Tests\Core\TypedData\RecursiveContextualValidatorTest::testValidateWithGroups()

Ensures that passing an explicit group is not supported.

@covers ::validate

File

core/tests/Drupal/Tests/Core/TypedData/RecursiveContextualValidatorTest.php, line 99
Contains \Drupal\Tests\Core\TypedData\RecursiveContextualValidatorTest.

Class

RecursiveContextualValidatorTest
@coversDefaultClass \Drupal\Core\TypedData\Validation\RecursiveContextualValidator @group typedData

Namespace

Drupal\Tests\Core\TypedData

Code

public function testValidateWithGroups() {
  $this
    ->expectException(\LogicException::class);
  $this->recursiveValidator
    ->validate('test', NULL, 'test group');
}