Drupal 8  8.0.2
FieldModuleUninstallValidatorTest Class Reference
Inheritance diagram for FieldModuleUninstallValidatorTest:

Public Member Functions

 testUninstallingModule ()
 

Protected Member Functions

 setUp ()
 
 assertModuleInstallUninstall ($module_name)
 
 getModuleHandler ()
 
 getModuleInstaller ()
 
- Protected Member Functions inherited from EntityUnitTestBase
 setUp ()
 
 createUser ($values=array(), $permissions=array())
 
 reloadEntity (EntityInterface $entity)
 
 getHooksInfo ()
 
 installModule ($module)
 
 uninstallModule ($module)
 
 refreshServices ()
 
 generateRandomEntityId ($string=FALSE)
 

Protected Attributes

 $entityDefinitionUpdateManager
 
- Protected Attributes inherited from EntityUnitTestBase
 $entityManager
 
 $generatedIds = array()
 
 $state
 

Additional Inherited Members

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

Detailed Description

Tests FieldModuleUninstallValidator functionality.

Field

Member Function Documentation

assertModuleInstallUninstall (   $module_name)
protected

Asserts the given module can be installed and uninstalled.

Parameters
string$module_nameThe module to install and uninstall.

References Drupal\entityDefinitionUpdateManager(), FieldModuleUninstallValidatorTest\getModuleHandler(), and FieldModuleUninstallValidatorTest\getModuleInstaller().

Referenced by FieldModuleUninstallValidatorTest\testUninstallingModule().

Here is the call graph for this function:

Here is the caller graph for this function:

getModuleHandler ( )
protected

Returns the ModuleHandler.

Returns

Referenced by FieldModuleUninstallValidatorTest\assertModuleInstallUninstall().

Here is the caller graph for this function:

getModuleInstaller ( )
protected

Returns the ModuleInstaller.

Returns

Referenced by FieldModuleUninstallValidatorTest\assertModuleInstallUninstall(), and FieldModuleUninstallValidatorTest\testUninstallingModule().

Here is the caller graph for this function:

setUp ( )
protected

{}

References BaseFieldDefinition\create(), Drupal\entityDefinitionUpdateManager(), Drupal\entityManager(), and Drupal\state().

Here is the call graph for this function:

testUninstallingModule ( )

Tests uninstall entity_test module with and without content for the field.

References FieldModuleUninstallValidatorTest\assertModuleInstallUninstall(), Drupal\entityDefinitionUpdateManager(), Drupal\entityManager(), and FieldModuleUninstallValidatorTest\getModuleInstaller().

Here is the call graph for this function:


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