Drupal 8  8.0.2
EntityConverterTest Class Reference
Inheritance diagram for EntityConverterTest:

Public Member Functions

 testApplies (array $definition, $name, Route $route, $applies)
 
 providerTestApplies ()
 
 testConvert ($value, array $definition, array $defaults, $expected_result)
 
 providerTestConvert ()
 
 testConvertWithInvalidEntityType ()
 
 testConvertWithInvalidDynamicEntityType ()
 
- Public Member Functions inherited from UnitTestCase
 randomMachineName ($length=8)
 
 getConfigFactoryStub (array $configs=array())
 
 getConfigStorageStub (array $configs)
 
 getStringTranslationStub ()
 

Protected Member Functions

 setUp ()
 
- 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

 $entityManager
 
 $entityConverter
 
- Protected Attributes inherited from UnitTestCase
 $randomGenerator
 
 $root
 

Detailed Description

ParamConverter Entity

Member Function Documentation

providerTestApplies ( )

Provides test data for testApplies()

providerTestConvert ( )

Provides test data for testConvert

setUp ( )
protected

{}

References Drupal\entityManager().

Here is the call graph for this function:

testApplies ( array  $definition,
  $name,
Route  $route,
  $applies 
)

Tests the applies() method.

providerTestApplies

::applies

References Drupal\entityManager().

Here is the call graph for this function:

testConvert (   $value,
array  $definition,
array  $defaults,
  $expected_result 
)

Tests the convert() method.

providerTestConvert

::convert

References Drupal\entityManager().

Here is the call graph for this function:

testConvertWithInvalidDynamicEntityType ( )

Tests the convert() method with an invalid dynamic entity type.

The "foo" parameter was not converted because the "invalid_id" parameter is missing

testConvertWithInvalidEntityType ( )

Tests the convert() method with an invalid entity type.

References Drupal\entityManager().

Here is the call graph for this function:


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