Drupal 8  8.0.2
BaseFieldDefinitionTestBase Class Reference
Inheritance diagram for BaseFieldDefinitionTestBase:

Protected Member Functions

 setUp ()
 
 getPluginId ()
 
 getModuleAndPath ()
 
- Protected Member Functions inherited from UnitTestCase
 setUp ()
 
 getRandomGenerator ()
 
 assertArrayEquals (array $expected, array $actual, $message=NULL)
 
 getBlockMockWithMachineName ($machine_name)
 
 getContainerWithCacheTagsInvalidator (CacheTagsInvalidatorInterface $cache_tags_validator)
 
 getClassResolverStub ()
 

Protected Attributes

 $definition
 
- Protected Attributes inherited from UnitTestCase
 $randomGenerator
 
 $root
 

Additional Inherited Members

- Public Member Functions inherited from UnitTestCase
 randomMachineName ($length=8)
 
 getConfigFactoryStub (array $configs=array())
 
 getConfigStorageStub (array $configs)
 
 getStringTranslationStub ()
 

Detailed Description

Provides setup method for testing base field definitions.

Member Function Documentation

getModuleAndPath ( )
abstractprotected

Returns the module name and the module directory for the plugin.

drupal_get_path() cannot be used here, because it is not available in Drupal PHPUnit tests.

Returns
array A one-dimensional array containing the following strings:
  • The module name.
  • The module directory, e.g. DRUPAL_CORE . 'core/modules/path'.

Referenced by BaseFieldDefinitionTestBase\setUp().

Here is the caller graph for this function:

getPluginId ( )
abstractprotected

Returns the plugin ID of the tested field type.

Returns
string The plugin ID.

Referenced by BaseFieldDefinitionTestBase\setUp().

Here is the caller graph for this function:

setUp ( )
protected

{}

References BaseFieldDefinition\create(), BaseFieldDefinitionTestBase\getModuleAndPath(), BaseFieldDefinitionTestBase\getPluginId(), UnitTestCase\getStringTranslationStub(), and Drupal\setContainer().

Here is the call graph for this function:


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