Tests the ModuleHandler class.
@group System
Expanded class hierarchy of ModuleHandlerUnitTest
class ModuleHandlerUnitTest extends UnitTestCase {
public static function getInfo() {
return array(
'name' => 'ModuleHandler functionality',
'description' => 'Tests the ModuleHandler class.',
'group' => 'System',
);
}
function setUp() {
parent::setUp();
$this->moduleHandler = new ModuleHandler();
}
function testloadInclude() {
// Make sure that load include does not throw notices on nonexisiting
// modules.
$this->moduleHandler
->loadInclude('foo', 'inc');
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ModuleHandlerUnitTest:: |
public static | function |
This method exists to support the simpletest UI runner. Overrides UnitTestCase:: |
|
ModuleHandlerUnitTest:: |
function | |||
ModuleHandlerUnitTest:: |
function | |||
UnitTestCase:: |
public | function | Returns a stub config factory that behaves according to the passed in array. | |
UnitTestCase:: |
public | function | Returns a stub config storage that returns the supplied configuration. | |
UnitTestCase:: |
public static | function | Generates a random string containing letters and numbers. |