Drupal 8  8.0.2
BulkDeleteTest Class Reference
Inheritance diagram for BulkDeleteTest:

Public Member Functions

 checkHooksInvocations ($expected_hooks, $actual_hooks)
 
 testPurgeField ()
 
 testPurgeFieldStorage ()
 

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

 $fieldStorages
 
 $entities
 
 $entitiesByBundles
 
 $bundles
 
 $entityTypeId = 'entity_test'
 
- Protected Attributes inherited from FieldUnitTestBase
 $fieldTestData
 

Additional Inherited Members

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

Detailed Description

Bulk delete storages and fields, and clean up afterwards.

field

Member Function Documentation

checkHooksInvocations (   $expected_hooks,
  $actual_hooks 
)

Tests that the expected hooks have been invoked on the expected entities.

Parameters
$expected_hooksAn array keyed by hook name, with one entry per expected invocation. Each entry is the value of the "$entity" parameter the hook is expected to have been passed.
$actual_hooksThe array of actual hook invocations recorded by field_test_memorize().

References EntityInterface\id().

Here is the call graph for this function:

testPurgeField ( )

Verify that field data items and fields are purged when a field storage is deleted.

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

Here is the call graph for this function:

testPurgeFieldStorage ( )

Verify that field storages are preserved and purged correctly as multiple fields are deleted and purged.

References field_purge_batch().

Here is the call graph for this function:


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