Drupal 8  8.0.2
ContentEntityNormalizerTest Class Reference
Inheritance diagram for ContentEntityNormalizerTest:

Public Member Functions

 testSupportsNormalization ()
 
 testNormalize ()
 
 testNormalizeWithAccountContext ()
 
 createMockForContentEntity ($definitions)
 
- Public Member Functions inherited from UnitTestCase
 randomMachineName ($length=8)
 
 getConfigFactoryStub (array $configs=array())
 
 getConfigStorageStub (array $configs)
 
 getStringTranslationStub ()
 

Protected Member Functions

 setUp ()
 
 createMockFieldListItem ($access=TRUE, $user_context=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

 $entityManager
 
 $serializer
 
 $contentEntityNormalizer
 
- Protected Attributes inherited from UnitTestCase
 $randomGenerator
 
 $root
 

Detailed Description

serialization

Member Function Documentation

createMockFieldListItem (   $access = TRUE,
  $user_context = NULL 
)
protected

Creates a mock field list item.

Parameters
bool$access
Returns
|

Referenced by ContentEntityNormalizerTest\testNormalize(), and ContentEntityNormalizerTest\testNormalizeWithAccountContext().

Here is the caller graph for this function:

createMockForContentEntity (   $definitions)

Creates a mock content entity.

Parameters
$definitions
Returns

Referenced by ContentEntityNormalizerTest\testNormalize(), and ContentEntityNormalizerTest\testNormalizeWithAccountContext().

Here is the caller graph for this function:

setUp ( )
protected

{}

References Drupal\entityManager().

Here is the call graph for this function:

testNormalize ( )

Tests the normalize() method.

::normalize

References ContentEntityNormalizerTest\createMockFieldListItem(), and ContentEntityNormalizerTest\createMockForContentEntity().

Here is the call graph for this function:

testNormalizeWithAccountContext ( )

Tests the normalize() method with account context passed.

::normalize

References ContentEntityNormalizerTest\createMockFieldListItem(), and ContentEntityNormalizerTest\createMockForContentEntity().

Here is the call graph for this function:

testSupportsNormalization ( )

::supportsNormalization


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