/**
* @covers ::loadInclude
*
* Note we load code, so isolate the test.
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*/
public function testLoadInclude() { $module_handler =
$this->
getModuleHandler();
// Include exists.
$this->
assertEquals(__DIR__ . '/modules/module_handler_test/hook_include.inc',
$module_handler->
loadInclude('module_handler_test', 'inc', 'hook_include'
));
$this->
assertTrue(function_exists('module_handler_test_hook_include'
));
// Include doesn't exist.
$this->
assertFalse($module_handler->
loadInclude('module_handler_test', 'install'
));
} /**
* Tests invoke methods when module is enabled.
*
* @covers ::invoke
*/
public function testInvokeModuleEnabled() {