Drupal 8  8.0.2
FieldAttachOtherTest Class Reference
Inheritance diagram for FieldAttachOtherTest:

Public Member Functions

 testEntityDisplayBuild ()
 testEntityDisplayViewMultiple ()
 testEntityCache ()
 testEntityFormDisplayBuildForm ()
 testEntityFormDisplayExtractFormValues ()

Protected Member Functions

 setUp ()
- Protected Member Functions inherited from FieldUnitTestBase
 setUp ()
 createFieldWithStorage ($suffix= '', $entity_type= 'entity_test', $bundle=NULL)
 entitySaveReload (EntityInterface $entity)
 entityValidateAndSave (EntityInterface $entity)
 _generateTestFieldValues ($cardinality)
 assertFieldValues (EntityInterface $entity, $field_name, $expected_values, $langcode=LanguageInterface::LANGCODE_NOT_SPECIFIED, $column= 'value')

Additional Inherited Members

- Static Public Attributes inherited from FieldUnitTestBase
static $modules = ['user', 'system', 'field', 'text', 'entity_test', 'field_test']
- Protected Attributes inherited from FieldUnitTestBase

Detailed Description

Tests other Field API functions.


move this to the Entity module

Member Function Documentation

testEntityCache ( )

Test entity cache.

Complements unit test coverage in .

References Drupal\cache().

Here is the call graph for this function:

testEntityDisplayBuild ( )

Test rendering fields with EntityDisplay build().

References FieldUnitTestBase\_generateTestFieldValues(), and FieldUnitTestBase\createFieldWithStorage().

Here is the call graph for this function:

testEntityDisplayViewMultiple ( )

Tests rendering fields with EntityDisplay::buildMultiple().

testEntityFormDisplayBuildForm ( )

Tests ::buildForm().

This could be much more thorough, but it does verify that the correct widgets show up.

testEntityFormDisplayExtractFormValues ( )

Tests ::extractFormValues().

References Drupal\entityManager(), and Drupal\formBuilder().

Here is the call graph for this function:

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