Drupal 8  8.0.2
EntityViewsDataTest Class Reference
Inheritance diagram for EntityViewsDataTest:

Public Member Functions

 testBaseTables ()
 
 testDataTable ()
 
 testRevisionTableWithoutDataTable ()
 
 testRevisionTableWithRevisionDataTableAndDataTable ()
 
 testRevisionTableWithRevisionDataTable ()
 
 testBaseTableFields ()
 
 testDataTableFields ()
 
 testRevisionTableFields ()
 
 testEntityLinks ()
 
 testEntityLinksJustEditForm ()
 
 testGetViewsDataWithoutEntityOperations ()
 
 testGetViewsDataWithEntityOperations ()
 
- Public Member Functions inherited from UnitTestCase
 randomMachineName ($length=8)
 
 getConfigFactoryStub (array $configs=array())
 
 getConfigStorageStub (array $configs)
 
 getStringTranslationStub ()
 

Protected Member Functions

 setUp ()
 
 setupBaseFields (array $base_fields)
 
 setupFieldStorageDefinition ()
 
 assertField ($data, $field_name)
 
 assertStringField ($data)
 
 assertUriField ($data)
 
 assertLongTextField ($data, $field_name)
 
 assertUuidField ($data)
 
 assertNumericField ($data)
 
 assertLanguageField ($data)
 
 assertEntityReferenceField ($data)
 
 assertBundleField ($data)
 
- Protected Member Functions inherited from UnitTestCase
 setUp ()
 
 getRandomGenerator ()
 
 assertArrayEquals (array $expected, array $actual, $message=NULL)
 
 getBlockMockWithMachineName ($machine_name)
 
 getContainerWithCacheTagsInvalidator (CacheTagsInvalidatorInterface $cache_tags_validator)
 
 getClassResolverStub ()
 

Static Protected Member Functions

static userEntityInfo ()
 

Protected Attributes

 $baseEntityType
 
 $entityStorage
 
 $entityManager
 
 $moduleHandler
 
 $translationManager
 
 $viewsData
 
- Protected Attributes inherited from UnitTestCase
 $randomGenerator
 
 $root
 

Detailed Description

Views

Member Function Documentation

assertBundleField (   $data)
protected

Tests views data for a bundle field.

Referenced by EntityViewsDataTest\testDataTableFields().

Here is the caller graph for this function:

assertEntityReferenceField (   $data)
protected

Tests views data for a entity reference field.

Referenced by EntityViewsDataTest\testBaseTableFields(), EntityViewsDataTest\testDataTableFields(), and EntityViewsDataTest\testRevisionTableFields().

Here is the caller graph for this function:

assertField (   $data,
  $field_name 
)
protected

Tests generic stuff per field.

Parameters
array$dataThe views data to check.
string$field_nameThe entity field name.

Referenced by EntityViewsDataTest\testBaseTableFields(), EntityViewsDataTest\testDataTableFields(), and EntityViewsDataTest\testRevisionTableFields().

Here is the caller graph for this function:

assertLanguageField (   $data)
protected

Tests views data for a language field.

Parameters
array$dataThe views data to check.

Referenced by EntityViewsDataTest\testBaseTableFields(), EntityViewsDataTest\testDataTableFields(), and EntityViewsDataTest\testRevisionTableFields().

Here is the caller graph for this function:

assertLongTextField (   $data,
  $field_name 
)
protected

Tests views data for a long text field.

Parameters
$dataThe views data for the table this field is in.
$field_nameThe name of the field being checked.

References EntityViewsDataTest\assertStringField().

Referenced by EntityViewsDataTest\testBaseTableFields(), EntityViewsDataTest\testDataTableFields(), and EntityViewsDataTest\testRevisionTableFields().

Here is the call graph for this function:

Here is the caller graph for this function:

assertNumericField (   $data)
protected

Tests views data for a numeric field.

Parameters
array$dataThe views data to check.

Referenced by EntityViewsDataTest\testBaseTableFields(), EntityViewsDataTest\testDataTableFields(), and EntityViewsDataTest\testRevisionTableFields().

Here is the caller graph for this function:

assertStringField (   $data)
protected

Tests views data for a string field.

Parameters
$dataThe views data to check.

Referenced by EntityViewsDataTest\assertLongTextField(), EntityViewsDataTest\testBaseTableFields(), EntityViewsDataTest\testDataTableFields(), and EntityViewsDataTest\testRevisionTableFields().

Here is the caller graph for this function:

assertUriField (   $data)
protected

Tests views data for a URI field.

Parameters
$dataThe views data to check.

Referenced by EntityViewsDataTest\testBaseTableFields(), EntityViewsDataTest\testDataTableFields(), and EntityViewsDataTest\testRevisionTableFields().

Here is the caller graph for this function:

assertUuidField (   $data)
protected

Tests views data for a UUID field.

Parameters
array$dataThe views data to check.

Referenced by EntityViewsDataTest\testBaseTableFields(), EntityViewsDataTest\testDataTableFields(), and EntityViewsDataTest\testRevisionTableFields().

Here is the caller graph for this function:

setUp ( )
protected

{}

References Drupal\entityManager(), UnitTestCase\getStringTranslationStub(), Drupal\moduleHandler(), and Drupal\setContainer().

Here is the call graph for this function:

setupBaseFields ( array  $base_fields)
protected

Helper method to setup base fields.

Parameters
\Drupal\Core\Field\BaseFieldDefinition[]$base_fields The base fields which are adapted.
Returns
[] The setup base fields.

References BaseFieldDefinition\create(), and t().

Referenced by EntityViewsDataTest\testBaseTableFields(), EntityViewsDataTest\testDataTableFields(), and EntityViewsDataTest\testRevisionTableFields().

Here is the call graph for this function:

Here is the caller graph for this function:

setupFieldStorageDefinition ( )
protected

Helper method to mock all store definitions.

References Drupal\entityManager(), TextLongItem\schema(), StringItem\schema(), UuidItem\schema(), UriItem\schema(), LanguageItem\schema(), IntegerItem\schema(), and EntityReferenceItem\schema().

Referenced by EntityViewsDataTest\testBaseTableFields(), EntityViewsDataTest\testDataTableFields(), and EntityViewsDataTest\testRevisionTableFields().

Here is the call graph for this function:

Here is the caller graph for this function:

testBaseTables ( )

Tests base tables.

testDataTable ( )

Tests data_table support.

testEntityLinks ( )

Tests add link types.

testEntityLinksJustEditForm ( )

Tests additional edit links.

testGetViewsDataWithEntityOperations ( )

::getViewsData

testGetViewsDataWithoutEntityOperations ( )

::getViewsData

testRevisionTableWithoutDataTable ( )

Tests revision table without data table support.

testRevisionTableWithRevisionDataTable ( )

Tests revision table with data table support.

testRevisionTableWithRevisionDataTableAndDataTable ( )

Tests revision table with data table support.

static userEntityInfo ( )
staticprotected

Returns entity info for the user entity.

Returns
array

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