Drupal 8  8.0.2
EntityDisplayTest Class Reference
Inheritance diagram for EntityDisplayTest:

Public Member Functions

 testEntityDisplayCRUD ()
 
 testEntityDisplayCRUDSort ()
 
 testEntityGetDisplay ()
 
 testExtraFieldComponent ()
 
 testFieldComponent ()
 
 testBaseFieldComponent ()
 
 testDeleteBundle ()
 
 testDeleteField ()
 
 testOnDependencyRemoval ()
 
 testEntityDisplayInvalidateCacheTags ()
 
 testGetDisplayModeOptions ()
 

Static Public Attributes

static $modules = array('field_ui', 'field', 'entity_test', 'user', 'text', 'field_test', 'node', 'system')
 

Protected Member Functions

 setUp ()
 
 assertDependency ($type, $key, EntityDisplayInterface $display)
 
 assertNoDependency ($type, $key, EntityDisplayInterface $display)
 
 assertDependencyHelper ($assertion, $type, $key, EntityDisplayInterface $display)
 

Detailed Description

Tests the entity display configuration entities.

field_ui

Member Function Documentation

assertDependency (   $type,
  $key,
EntityDisplayInterface  $display 
)
protected

Asserts that $key is a $type type dependency of $display config entity.

Parameters
string$typeThe dependency type: 'config', 'content', 'module' or 'theme'.
string$keyThe string to be checked.
\Drupal\Core\Entity\Display\EntityDisplayInterface$displayThe entity display object to get dependencies from.
Returns
bool TRUE if the assertion succeeded, FALSE otherwise.

References EntityDisplayTest\assertDependencyHelper().

Here is the call graph for this function:

assertDependencyHelper (   $assertion,
  $type,
  $key,
EntityDisplayInterface  $display 
)
protected

Provides a helper for dependency assertions.

Parameters
bool$assertionAssertion: positive or negative.
string$typeThe dependency type: 'config', 'content', 'module' or 'theme'.
string$keyThe string to be checked.
\Drupal\Core\Entity\Display\EntityDisplayInterface$displayThe entity display object to get dependencies from.
Returns
bool TRUE if the assertion succeeded, FALSE otherwise.

References ConfigEntityInterface\getDependencies(), and EntityInterface\id().

Referenced by EntityDisplayTest\assertDependency(), and EntityDisplayTest\assertNoDependency().

Here is the call graph for this function:

Here is the caller graph for this function:

assertNoDependency (   $type,
  $key,
EntityDisplayInterface  $display 
)
protected

Asserts that $key is not a $type type dependency of $display config entity.

Parameters
string$typeThe dependency type: 'config', 'content', 'module' or 'theme'.
string$keyThe string to be checked.
\Drupal\Core\Entity\Display\EntityDisplayInterface$displayThe entity display object to get dependencies from.
Returns
bool TRUE if the assertion succeeded, FALSE otherwise.

References EntityDisplayTest\assertDependencyHelper().

Here is the call graph for this function:

testBaseFieldComponent ( )

Tests the behavior of a field component for a base field.

References Drupal\config(), Entity\create(), and Drupal\service().

Here is the call graph for this function:

testDeleteBundle ( )

Tests deleting a bundle.

References Entity\create().

Here is the call graph for this function:

testDeleteField ( )

Tests deleting field.

References Entity\create().

Here is the call graph for this function:

testEntityDisplayCRUD ( )

Tests basic CRUD operations on entity display objects.

References Entity\create().

Here is the call graph for this function:

testEntityDisplayCRUDSort ( )

Test sorting of components by name on basic CRUD operations

References Entity\create().

Here is the call graph for this function:

testEntityDisplayInvalidateCacheTags ( )

Ensure that entity view display changes invalidates cache tags.

References Drupal\cache(), Entity\create(), and Cache\PERMANENT.

Here is the call graph for this function:

testEntityGetDisplay ( )

Tests entity_get_display().

testExtraFieldComponent ( )

Tests the behavior of a field component within an entity display object.

References Entity\create().

Here is the call graph for this function:

testFieldComponent ( )

Tests the behavior of a field component within an entity display object.

References Entity\create(), and Drupal\service().

Here is the call graph for this function:

testGetDisplayModeOptions ( )

Test getDisplayModeOptions().

References Entity\create(), and Drupal\entityManager().

Here is the call graph for this function:

testOnDependencyRemoval ( )

Tests ::onDependencyRemoval().

References Entity\create(), and Drupal\service().

Here is the call graph for this function:


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