[Phpmyadmin-git] [SCM] phpMyAdmin branch, master, updated. RELEASE_3_4_3_1-11129-gf080342

Michal Čihař nijel at users.sourceforge.net
Thu Jul 21 11:38:34 CEST 2011


The branch, master has been updated
       via  f080342e7a46bfdcac1a5fca39772680ad51e19e (commit)
      from  aaa8b69055e036c4dbf254be1214eda9f9b1bbb0 (commit)


- Log -----------------------------------------------------------------
commit f080342e7a46bfdcac1a5fca39772680ad51e19e
Author: Michal Čihař <mcihar at suse.cz>
Date:   Thu Jul 21 11:39:15 2011 +0200

    Add missing bits to test cases setup

-----------------------------------------------------------------------

Summary of changes:
 .../common/PMA_buildActionTitles_test.php          |    1 +
 test/libraries/common/PMA_checkParameters_test.php |    1 +
 test/libraries/common/PMA_showDocu_test.php        |   10 ++++++----
 3 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/test/libraries/common/PMA_buildActionTitles_test.php b/test/libraries/common/PMA_buildActionTitles_test.php
index 310bf8f..6f23544 100644
--- a/test/libraries/common/PMA_buildActionTitles_test.php
+++ b/test/libraries/common/PMA_buildActionTitles_test.php
@@ -18,6 +18,7 @@ class PMA_buildActionTitles_test extends PHPUnit_Framework_TestCase{
     function setup()
     {
         $GLOBALS['cfg'] = array('PropertiesIconic' => 'both');
+        $GLOBALS['pmaThemeImage'] = 'theme/';
     }
 
     function testBuildActionTitles(){
diff --git a/test/libraries/common/PMA_checkParameters_test.php b/test/libraries/common/PMA_checkParameters_test.php
index b18f498..4bfcac9 100644
--- a/test/libraries/common/PMA_checkParameters_test.php
+++ b/test/libraries/common/PMA_checkParameters_test.php
@@ -21,6 +21,7 @@ class PMA_checkParameters_test extends PHPUnit_Extensions_OutputTestCase
         $GLOBALS['PMA_Config'] = new PMA_Config();
         $_SESSION['PMA_Theme'] = new PMA_Theme();
         $GLOBALS['cfg'] = array('ReplaceHelpImg' => true);
+        $GLOBALS['pmaThemeImage'] = 'theme/';
     }
 
     function testCheckParameterMissing()
diff --git a/test/libraries/common/PMA_showDocu_test.php b/test/libraries/common/PMA_showDocu_test.php
index b287ea1..a0c12c4 100644
--- a/test/libraries/common/PMA_showDocu_test.php
+++ b/test/libraries/common/PMA_showDocu_test.php
@@ -15,10 +15,14 @@ require_once 'libraries/common.lib.php';
 
 class PMA_showDocu_test extends PHPUnit_Framework_TestCase
 {
-    function testShowDocuReplaceHelpImg()
+    function setup()
     {
         $GLOBALS['cfg']['ReplaceHelpImg'] = true;
+        $GLOBALS['pmaThemeImage'] = 'theme/';
+    }
 
+    function testShowDocuReplaceHelpImg()
+    {
         $anchor = "relation";
         $expected = '<a href="Documentation.html#' . $anchor . '" target="documentation"><img class="icon" src="' . $GLOBALS['pmaThemeImage'] . 'b_help.png" width="11" height="11" alt="' . __('Documentation') . '" title="' . __('Documentation') . '" /></a>';
 
@@ -28,12 +32,10 @@ class PMA_showDocu_test extends PHPUnit_Framework_TestCase
 
     function testShowDocuNotReplaceHelpImg()
     {
-        $GLOBALS['cfg']['ReplaceHelpImg'] = false;
-
         $anchor = "relation";
         $expected = '[<a href="Documentation.html#' . $anchor . '" target="documentation">' . __('Documentation') . '</a>]';
 
         $this->assertEquals($expected, PMA_showDocu($anchor));
 
     }
-}
\ No newline at end of file
+}


hooks/post-receive
-- 
phpMyAdmin




More information about the Git mailing list