Merge pull request #471 from adamgsoc2013/UT_pluginss

fix the undefined error in UT
This commit is contained in:
Michal Čihař 2013-07-01 07:36:24 -07:00
commit 864cf690d8
2 changed files with 2 additions and 1 deletions

View File

@ -31,6 +31,7 @@ class PMA_ConfigFile_Test extends PHPUnit_Framework_TestCase
*/
protected function setUp()
{
$GLOBALS['server'] = 1;
$GLOBALS['cfg']['AvailableCharsets'] = array();
$this->object = ConfigFile::getInstance();
$this->server = $GLOBALS['server'];

View File

@ -32,7 +32,7 @@ class PMA_Tracker_Test extends PHPUnit_Framework_TestCase
/**
* SET these to avoid undefined index error
*/
$GLOBALS['server'] = 1;
$GLOBALS['cfg']['Server']['pmadb'] = '';
$GLOBALS['cfg']['Server']['tracking'] = '';
$GLOBALS['cfg']['Server']['tracking_add_drop_table'] = '';