function test_includeComponentFile() { $GLOBALS['_MAX']['CONF']['pluginPaths']['plugins'] = '/lib/OX/Plugin/tests/data/testExtensions/'; $GLOBALS['_MAX']['CONF']['pluginGroupComponents'] = array('testGroup1' => 1, 'testGroup2' => 1); $this->assertFalse(class_exists('Plugins_TestExtension1_TestGroup1_TestComponent1')); $this->assertTrue(OX_Component::_includeComponentFile('testExtension1', 'testGroup1', 'testComponent1')); $this->assertTrue(class_exists('Plugins_TestExtension1_TestGroup1_TestComponent1')); }