Merge pull request #471 from adamgsoc2013/UT_pluginss
fix the undefined error in UT
This commit is contained in:
commit
864cf690d8
@ -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'];
|
||||
|
||||
@ -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'] = '';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user