Ejemplo n.º 1
0
 function test_isGroupEnabled()
 {
     unset($GLOBALS['_MAX']['CONF']['pluginGroupComponents']['testPlugin']);
     $this->assertFalse(OX_Component::_isGroupEnabled('testPlugin'));
     $GLOBALS['_MAX']['CONF']['pluginGroupComponents']['testPlugin'] = '';
     $this->assertFalse(OX_Component::_isGroupEnabled('', 'testPlugin'));
     $GLOBALS['_MAX']['CONF']['pluginGroupComponents']['testPlugin'] = '0';
     $this->assertFalse(OX_Component::_isGroupEnabled('testPlugin'));
     $GLOBALS['_MAX']['CONF']['pluginGroupComponents']['testPlugin'] = '1';
     $this->assertTrue(OX_Component::_isGroupEnabled('testPlugin'));
     unset($GLOBALS['_MAX']['CONF']['pluginGroupComponents']['testPlugin']);
 }