Is there a standard set of System/Unit tests and a test environment I can install, other than just my local server installation?
if (defined('PROTECTOR_{PRE|POST}CHECK_INCLUDED')) return;
require_once dirname(__FILE__).'/precheck_functions.php' ;
if( class_exists( 'Database' ) ) {
require dirname(__FILE__).'/postcheck.inc.php' ;
return ; }
define('PROTECTOR_PRECHECK_INCLUDED' , 1 ) ;
define('PROTECTOR_PRECHECK_INCLUDED' , 1 ) ;
/**
* Load the admin menu for the module
*/
function loadAdminMenu()
{
if ($this->getInfo('adminmenu') && $this->getInfo('adminmenu') != '' && file_exists(XOOPS_ROOT_PATH.'/modules/'.$this->getVar('dirname').'/'.$this->getInfo('adminmenu'))) {
// -DJD-
//
// Make sure we actually load the module's menu (if there is one).
//
// Using 'include_once' prevents menu initialization when subsequent
// calls to getAdminMenu() are made from within independent files
// during the same execution. A good example is when CPanel menu
// construction is shared between methods in the XoopsSystemGui
// subclass and functions in an included cp_functions.php file.
// PHP loads the file in the context of the first call, but since new
// instances of XoopsModule are created for use in each independent
// file's functionality, all subsequently instantiated XoopsModule
// instances do not have an adminmenu.
//
// include_once XOOPS_ROOT_PATH.'/modules/'.$this->getVar('dirname').'/'.$this->getInfo('adminmenu');
include XOOPS_ROOT_PATH.'/modules/'.$this->getVar('dirname').'/'.$this->getInfo('adminmenu');
//
// -DJD-
$this->adminmenu =& $adminmenu;
}
}