Drupal 8  8.0.2
NormalizeTest Class Reference
Inheritance diagram for NormalizeTest:

Public Member Functions

 testNormalize ()

Protected Member Functions

 setUp ()
 getEntityUri (EntityInterface $entity)
- Protected Member Functions inherited from NormalizerTestBase
 setUp ()

Additional Inherited Members

- Static Public Attributes inherited from NormalizerTestBase
static $modules = ['entity_test', 'field', 'hal', 'language', 'rest', 'serialization', 'system', 'text', 'user', 'filter']
- Protected Attributes inherited from NormalizerTestBase
 $format = 'hal_json'
 $entityClass = 'Drupal\entity_test\Entity\EntityTest'

Detailed Description

Tests that entities can be normalized in HAL.


Member Function Documentation

getEntityUri ( EntityInterface  $entity)

Constructs the entity URI.

\Drupal\Core\Entity\EntityInterface$entityThe entity.
string The entity URI.

References EntityInterface\urlInfo().

Referenced by NormalizeTest\testNormalize().

Here is the call graph for this function:

Here is the caller graph for this function:

setUp ( )


References Drupal\service().

Here is the call graph for this function:

testNormalize ( )

Tests the normalize function.

References Url\fromUri(), and NormalizeTest\getEntityUri().

Here is the call graph for this function:

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