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

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

Additional Inherited Members

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

Detailed Description

Tests FieldModuleUninstallValidator functionality.


Member Function Documentation

assertModuleInstallUninstall (   $module_name)

Asserts the given module can be installed and uninstalled.

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 ( )

Returns the ModuleHandler.


Referenced by FieldModuleUninstallValidatorTest\assertModuleInstallUninstall().

Here is the caller graph for this function:

getModuleInstaller ( )

Returns the ModuleInstaller.


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

Here is the caller graph for this function:

setUp ( )


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: