Drupal 8  8.0.2
TranslationTest Class Reference
Inheritance diagram for TranslationTest:

Public Member Functions

 testTranslatableFieldSaveLoad ()
 
 testFieldAccess ()
 

Static Public Attributes

static $modules = array('language', 'node')
 
- Static Public Attributes inherited from FieldUnitTestBase
static $modules = ['user', 'system', 'field', 'text', 'entity_test', 'field_test']
 

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')
 

Protected Attributes

 $fieldName
 
 $entityType = 'test_entity'
 
 $fieldStorageDefinition
 
 $fieldDefinition
 
 $fieldStorage
 
 $field
 
- Protected Attributes inherited from FieldUnitTestBase
 $fieldTestData
 

Detailed Description

Tests multilanguage fields logic.

The following tests will check the multilanguage logic in field handling.

field

Member Function Documentation

setUp ( )
protected

{}

References Entity\create(), and Unicode\strtolower().

Here is the call graph for this function:

testFieldAccess ( )

Tests field access.

Regression test to verify that fieldAccess() can be called while only passing the required parameters.

See Also
https://www.drupal.org/node/2404739

References Drupal\entityManager().

Here is the call graph for this function:

testTranslatableFieldSaveLoad ( )

Test translatable fields storage/retrieval.

References FieldUnitTestBase\_generateTestFieldValues(), and Drupal\entityManager().

Here is the call graph for this function:


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