From 383d55ff6dd5d179212ccaaa3b734396694f0c9e Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Sun, 2 Oct 2011 02:07:36 +0530 Subject: [PATCH 1/2] Revert 7bb14bcea9affb0c43076685f049e45719384d4d --- test/libraries/common/PMA_showPHPDocu_test.php | 1 - 1 file changed, 1 deletion(-) diff --git a/test/libraries/common/PMA_showPHPDocu_test.php b/test/libraries/common/PMA_showPHPDocu_test.php index 15f8b11c69..2bf53d0a50 100644 --- a/test/libraries/common/PMA_showPHPDocu_test.php +++ b/test/libraries/common/PMA_showPHPDocu_test.php @@ -11,7 +11,6 @@ /* * Include to test. */ -require_once 'libraries/config.default.php'; require_once 'libraries/core.lib.php'; require_once 'libraries/common.lib.php'; require_once 'libraries/Theme.class.php'; From aa4dac81752c6c8d84838f098501fb9770735d73 Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Sun, 2 Oct 2011 02:10:15 +0530 Subject: [PATCH 2/2] Defining undefined config --- test/libraries/common/PMA_showPHPDocu_test.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/libraries/common/PMA_showPHPDocu_test.php b/test/libraries/common/PMA_showPHPDocu_test.php index 2bf53d0a50..09cebbfd0a 100644 --- a/test/libraries/common/PMA_showPHPDocu_test.php +++ b/test/libraries/common/PMA_showPHPDocu_test.php @@ -20,6 +20,8 @@ class PMA_showPHPDocu_test extends PHPUnit_Framework_TestCase function setup() { $_SESSION['PMA_Theme'] = PMA_Theme::load('./themes/pmahomme'); + $GLOBALS['server'] = 99; + $GLOBALS['cfg']['ServerDefault'] = 0; } function testShwoPHPDocuReplaceHelpImg() @@ -28,7 +30,7 @@ class PMA_showPHPDocu_test extends PHPUnit_Framework_TestCase $target = "docu"; $lang = _pgettext('PHP documentation language', 'en'); - $expected = '' . __('Documentation') . ''; @@ -41,7 +43,7 @@ class PMA_showPHPDocu_test extends PHPUnit_Framework_TestCase $target = "docu"; $lang = _pgettext('PHP documentation language', 'en'); - $expected = '[' . __('Documentation') . ']'; $this->assertEquals($expected, PMA_showPHPDocu($target));