Drupal 8  8.0.2
RecursiveContextualValidatorTest Class Reference
Inheritance diagram for RecursiveContextualValidatorTest:

Public Member Functions

 testValidateWithGroups ()
 
 testValidateWithoutTypedData ()
 
 testBasicValidateWithoutConstraints ()
 
 testBasicValidateWithConstraint ()
 
 testBasicValidateWithMultipleConstraints ()
 
 testPropertiesValidateWithMultipleLevels ()
 
 testValidatePropertyWithCustomGroup ()
 
 testValidatePropertyWithInvalidObjects ($object)
 
 providerTestValidatePropertyWithInvalidObjects ()
 
 testValidateProperty ()
 
 testValidatePropertyValueWithInvalidObjects ($object)
 
 testValidatePropertyValue ()
 
- Public Member Functions inherited from UnitTestCase
 randomMachineName ($length=8)
 
 getConfigFactoryStub (array $configs=array())
 
 getConfigStorageStub (array $configs)
 
 getStringTranslationStub ()
 

Protected Member Functions

 setUp ()
 
 buildExampleTypedDataWithProperties ($subkey_value=NULL)
 
- Protected Member Functions inherited from UnitTestCase
 setUp ()
 
 getRandomGenerator ()
 
 assertArrayEquals (array $expected, array $actual, $message=NULL)
 
 getBlockMockWithMachineName ($machine_name)
 
 getContainerWithCacheTagsInvalidator (CacheTagsInvalidatorInterface $cache_tags_validator)
 
 getClassResolverStub ()
 

Protected Attributes

 $typedDataManager
 
 $recursiveValidator
 
 $validatorFactory
 
 $contextFactory
 
- Protected Attributes inherited from UnitTestCase
 $randomGenerator
 
 $root
 

Detailed Description

typedData

Member Function Documentation

buildExampleTypedDataWithProperties (   $subkey_value = NULL)
protected

Builds some example type data object.

Returns
|

Referenced by RecursiveContextualValidatorTest\testPropertiesValidateWithMultipleLevels(), RecursiveContextualValidatorTest\testValidateProperty(), and RecursiveContextualValidatorTest\testValidatePropertyValue().

Here is the caller graph for this function:

providerTestValidatePropertyWithInvalidObjects ( )

Provides data for testValidatePropertyWithInvalidObjects.

Returns
array
setUp ( )
protected

{}

References Drupal\root(), Drupal\setContainer(), and Drupal\typedDataManager().

Here is the call graph for this function:

testBasicValidateWithConstraint ( )

::validate

References DataDefinition\create(), and Drupal\typedDataManager().

Here is the call graph for this function:

testBasicValidateWithMultipleConstraints ( )

::validate

References DataDefinition\create(), and Drupal\typedDataManager().

Here is the call graph for this function:

testBasicValidateWithoutConstraints ( )

::validate

References DataDefinition\create(), and Drupal\typedDataManager().

Here is the call graph for this function:

testPropertiesValidateWithMultipleLevels ( )

::validate

References RecursiveContextualValidatorTest\buildExampleTypedDataWithProperties().

Here is the call graph for this function:

testValidateProperty ( )

::validateProperty

References RecursiveContextualValidatorTest\buildExampleTypedDataWithProperties().

Here is the call graph for this function:

testValidatePropertyValue ( )

::validatePropertyValue

References RecursiveContextualValidatorTest\buildExampleTypedDataWithProperties().

Here is the call graph for this function:

testValidatePropertyValueWithInvalidObjects (   $object)

::validatePropertyValue

providerTestValidatePropertyWithInvalidObjects

testValidatePropertyWithCustomGroup ( )

::validateProperty

testValidatePropertyWithInvalidObjects (   $object)

::validateProperty

providerTestValidatePropertyWithInvalidObjects

testValidateWithGroups ( )

Ensures that passing an explicit group is not supported.

::validate

testValidateWithoutTypedData ( )

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

::validate


The documentation for this class was generated from the following file: