1
0
mirror of https://github.com/phpmyadmin/phpmyadmin.git synced 2026-10-29 21:24:44 +03:00

Fix more failing tests

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
This commit is contained in:
Madhura Jayaratne
2014-10-10 07:18:11 +05:30
parent d441a217ec
commit b587d7cd3d
2 changed files with 3 additions and 20 deletions

View File

@@ -385,16 +385,7 @@ class Node_Test extends PHPUnit_Framework_TestCase
*/
public function testGetPresenceWithEnabledIS()
{
if (! isset($GLOBALS['cfg'])) {
$GLOBALS['cfg'] = array();
}
if (! isset($GLOBALS['cfg']['Servers'])) {
$GLOBALS['cfg']['Servers'] = array();
}
if (! isset($GLOBALS['cfg']['Servers'][0])) {
$GLOBALS['cfg']['Servers'][0] = array();
}
$GLOBALS['cfg']['Servers'][0]['DisableIS'] = false;
$GLOBALS['cfg']['Server']['DisableIS'] = false;
$GLOBALS['cfg']['NavigationTreeDbSeparator'] = '_';
$query = "select COUNT(*) ";
@@ -427,16 +418,7 @@ class Node_Test extends PHPUnit_Framework_TestCase
*/
public function testGetPresenceWithDisabledIS()
{
if (! isset($GLOBALS['cfg'])) {
$GLOBALS['cfg'] = array();
}
if (! isset($GLOBALS['cfg']['Servers'])) {
$GLOBALS['cfg']['Servers'] = array();
}
if (! isset($GLOBALS['cfg']['Servers'][0])) {
$GLOBALS['cfg']['Servers'][0] = array();
}
$GLOBALS['cfg']['Servers'][0]['DisableIS'] = true;
$GLOBALS['cfg']['Server']['DisableIS'] = true;
$node = PMA_NodeFactory::getInstance();

View File

@@ -52,6 +52,7 @@ class PMA_Structure_Test extends PHPUnit_Framework_TestCase
$GLOBALS['cfg']['ShowSQL'] = true;
$GLOBALS['cfg']['TableNavigationLinksMode'] = 'icons';
$GLOBALS['cfg']['LimitChars'] = 100;
$GLOBALS['cfg']['Server']['DisableIS'] = false;
$GLOBALS['table'] = "table";
$GLOBALS['pmaThemeImage'] = 'image';