You are here

public function RecursiveContextualValidatorTest::testValidateWithoutTypedData in Zircon Profile 8

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

Ensures that passing a non typed data value is not supported.

@covers ::validate

@expectedException \InvalidArgumentException

File

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

Class

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

Namespace

Drupal\Tests\Core\TypedData

Code

public function testValidateWithoutTypedData() {
  $this->recursiveValidator
    ->validate('test');
}