function test_isEnabled() { $oManager = new OX_Plugin_ComponentGroupManager(); $GLOBALS['_MAX']['CONF']['pluginGroupComponents']['foo'] = 0; $this->assertFalse($oManager->isEnabled('foo')); $GLOBALS['_MAX']['CONF']['pluginGroupComponents']['foo'] = 1; $this->assertTrue($oManager->isEnabled('foo')); unset($GLOBALS['_MAX']['CONF']['pluginGroupComponents']['foo']); }