/**
  * a list of all known plugins
  *
  * @return unknown
  */
 function test_getAllExtensionsArray()
 {
     $oExtension = new OX_Extension();
     $GLOBALS['_MAX']['CONF']['pluginPaths']['plugins'] = '/lib/OX/tests/data/plugins/';
     $GLOBALS['_MAX']['CONF']['pluginPaths']['packages'] = '/lib/OX/tests/data/plugins/etc/';
     $aResult = $oExtension->getAllExtensionsArray();
     $this->assertEqual(count($aResult), 3);
     sort($aResult);
     $this->assertEqual($aResult[0], 'admin');
     $this->assertEqual($aResult[1], 'test');
     $this->assertEqual($aResult[2], 'test1');
     TestEnv::restoreConfig();
 }
Exemplo n.º 2
0
/**
 * OpenX Developer Toolbox
 */
function getExtensionList()
{
    require_once LIB_PATH . '/Extension.php';
    return OX_Extension::getAllExtensionsArray();
}