/** * @covers ::loadInclude */ public function testLoadInclude() { // Include exists. $this->assertEquals(__DIR__ . '/modules/module_handler_test/hook_include.inc', $this->moduleHandler->loadInclude('module_handler_test', 'inc', 'hook_include')); $this->assertTrue(function_exists('module_handler_test_hook_include')); // Include doesn't exist. $this->assertFalse($this->moduleHandler->loadInclude('module_handler_test', 'install')); }