Drupal 8  8.0.2
EntityTranslationTest Class Reference
Inheritance diagram for EntityTranslationTest:

Public Member Functions

 testEntityLanguageMethods ()
 
 testMultilingualProperties ()
 
 testEntityTranslationAPI ()
 
 testLanguageFallback ()
 
 testFieldDefinitions ()
 
 testLanguageChange ()
 

Protected Member Functions

 doTestEntityLanguageMethods ($entity_type)
 
 doTestMultilingualProperties ($entity_type)
 
 doTestLanguageChange ($entity_type)
 
- Protected Member Functions inherited from EntityLanguageTestBase
 setUp ()
 
 toggleFieldTranslatability ($entity_type, $bundle)
 
- Protected Member Functions inherited from EntityUnitTestBase
 setUp ()
 
 createUser ($values=array(), $permissions=array())
 
 reloadEntity (EntityInterface $entity)
 
 getHooksInfo ()
 
 installModule ($module)
 
 uninstallModule ($module)
 
 refreshServices ()
 
 generateRandomEntityId ($string=FALSE)
 

Additional Inherited Members

- Static Public Attributes inherited from EntityLanguageTestBase
static $modules = array('language', 'entity_test')
 
- Static Public Attributes inherited from EntityUnitTestBase
static $modules = ['user', 'system', 'field', 'text', 'filter', 'entity_test']
 
- Protected Attributes inherited from EntityLanguageTestBase
 $languageManager
 
 $langcodes
 
 $fieldName
 
 $untranslatableFieldName
 
- Protected Attributes inherited from EntityUnitTestBase
 $entityManager
 
 $generatedIds = array()
 
 $state
 

Detailed Description

Tests entity translation functionality.

Entity

Member Function Documentation

doTestEntityLanguageMethods (   $entity_type)
protected

Executes the entity language method tests for the given entity type.

Parameters
string$entity_typeThe entity type to run the tests with.

References Drupal\currentUser(), Drupal\entityManager(), format_string(), LanguageInterface\LANGCODE_DEFAULT, LanguageInterface\LANGCODE_NOT_SPECIFIED, and Drupal\languageManager().

Referenced by EntityTranslationTest\testEntityLanguageMethods().

Here is the call graph for this function:

Here is the caller graph for this function:

doTestLanguageChange (   $entity_type)
protected

Executes the entity language change test for the given entity type.

Parameters
string$entity_typeThe entity type to run the tests with.
doTestMultilingualProperties (   $entity_type)
protected

Executes the multilingual property tests for the given entity type.

Parameters
string$entity_typeThe entity type to run the tests with.

References Drupal\entityQuery(), and format_string().

Here is the call graph for this function:

testEntityLanguageMethods ( )

Tests language related methods of the Entity class.

References EntityTranslationTest\doTestEntityLanguageMethods().

Here is the call graph for this function:

testEntityTranslationAPI ( )

Tests the Entity Translation API behavior.

testFieldDefinitions ( )

Check that field translatability is handled properly.

References format_string().

Here is the call graph for this function:

testLanguageChange ( )

Tests that changing entity language does not break field language.

testLanguageFallback ( )

Tests language fallback applied to field and entity translations.

testMultilingualProperties ( )

Tests multilingual properties.


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