Drupal 8  8.0.2
ModuleHandlerTest Class Reference
Inheritance diagram for ModuleHandlerTest:

Public Member Functions

 testLoadModule ()
 
 testLoadAllModules ()
 
 testModuleReloading ()
 
 testIsLoaded ()
 
 testGetModuleList ()
 
 testGetModuleWithExistingModule ()
 
 testGetModuleWithNonExistingModule ()
 
 testSetModuleList ()
 
 testAddModule ()
 
 testAddProfile ()
 
 testModuleExists ()
 
 testLoadAllIncludes ()
 
 testLoadInclude ()
 
 testInvokeModuleEnabled ()
 
 testImplementsHookModuleEnabled ()
 
 testGetImplementations ()
 
 testCachedGetImplementations ()
 
 testCachedGetImplementationsMissingMethod ()
 
 testInvokeAll ()
 
 testWriteCache ()
 
 testGetHookInfo ()
 
 testResetImplementations ()
 
 testDependencyParsing ($dependency, $expected)
 
 dependencyProvider ()
 
 testGetModuleDirectories ()
 
- Public Member Functions inherited from UnitTestCase
 randomMachineName ($length=8)
 
 getConfigFactoryStub (array $configs=array())
 
 getConfigStorageStub (array $configs)
 
 getStringTranslationStub ()
 

Protected Member Functions

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

 $cacheBackend
 
 $moduleHandler
 
- Protected Attributes inherited from UnitTestCase
 $randomGenerator
 
 $root
 

Detailed Description

Extension

Member Function Documentation

dependencyProvider ( )

Provider for testing dependency parsing.

setUp ( )
protected

{}

::__construct

References Drupal\moduleHandler(), and Drupal\root().

Here is the call graph for this function:

testAddModule ( )

Test adding a module.

::addModule ::add

References Drupal\root().

Here is the call graph for this function:

testAddProfile ( )

Test adding a profile.

::addProfile ::add

References Drupal\root().

Here is the call graph for this function:

testCachedGetImplementations ( )

Test getImplementations.

::getImplementations ::getImplementationInfo

References Drupal\root().

Here is the call graph for this function:

testCachedGetImplementationsMissingMethod ( )

Test getImplementations.

::getImplementations ::getImplementationInfo

References Drupal\root().

Here is the call graph for this function:

testDependencyParsing (   $dependency,
  $expected 
)

dependencyProvider ::parseDependency

References ModuleHandler\parseDependency().

Here is the call graph for this function:

testGetHookInfo ( )

Test hook_hook_info() fetching through getHookInfo().

::getHookInfo ::buildHookInfo

References Drupal\moduleHandler().

Here is the call graph for this function:

testGetImplementations ( )

Test getImplementations.

::getImplementations ::getImplementationInfo ::buildImplementationInfo

References Drupal\moduleHandler().

Here is the call graph for this function:

testGetModuleDirectories ( )

::getModuleDirectories

References Drupal\moduleHandler(), and Drupal\root().

Here is the call graph for this function:

testGetModuleList ( )

Confirm we get back the modules set in the constructor.

::getModuleList

References Drupal\moduleHandler(), and Drupal\root().

Here is the call graph for this function:

testGetModuleWithExistingModule ( )

Confirm we get back a module from the module list

::getModule

References Drupal\moduleHandler(), and Drupal\root().

Here is the call graph for this function:

testGetModuleWithNonExistingModule ( )

::getModule

References Drupal\moduleHandler().

Here is the call graph for this function:

testImplementsHookModuleEnabled ( )

Test implementations methods when module is enabled.

::implementsHook ::loadAllIncludes

References Drupal\moduleHandler().

Here is the call graph for this function:

testInvokeAll ( )

Test invoke all.

::invokeAll

References Drupal\moduleHandler().

Here is the call graph for this function:

testInvokeModuleEnabled ( )

Test invoke methods when module is enabled.

::invoke

References Drupal\moduleHandler().

Here is the call graph for this function:

testIsLoaded ( )

Test isLoaded accessor.

::isLoaded

References Drupal\moduleHandler().

Here is the call graph for this function:

testLoadAllIncludes ( )

::loadAllIncludes

References Drupal\root().

Here is the call graph for this function:

testLoadAllModules ( )

Test loading all modules.

::loadAll

References Drupal\moduleHandler().

Here is the call graph for this function:

testLoadInclude ( )

::loadInclude

Note we load code, so isolate the test.

disabled

References Drupal\moduleHandler().

Here is the call graph for this function:

testLoadModule ( )

Test loading a module.

::load

References Drupal\moduleHandler().

Here is the call graph for this function:

testModuleExists ( )

Test module exists returns correct module status.

::moduleExists

References Drupal\moduleHandler().

Here is the call graph for this function:

testModuleReloading ( )

Test reload method.

::reload

References Drupal\root().

Here is the call graph for this function:

testResetImplementations ( )

Test internal implementation cache reset.

::resetImplementations

References Drupal\moduleHandler().

Here is the call graph for this function:

testSetModuleList ( )

Ensure setting the module list replaces the module list and resets internal structures.

::setModuleList

References Drupal\moduleHandler(), and Drupal\root().

Here is the call graph for this function:

testWriteCache ( )

Test that write cache calls through to cache library correctly.

::writeCache

References Drupal\moduleHandler().

Here is the call graph for this function:


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