diff --git a/test/bootstrap-dist.php b/test/bootstrap-dist.php index 4e74a52351..3fbf682582 100644 --- a/test/bootstrap-dist.php +++ b/test/bootstrap-dist.php @@ -43,11 +43,12 @@ foreach ($test_defaults as $varname => $defvalue) { } } -// Initialize PMA_VERSION variable +require_once 'libraries/String.class.php'; require_once 'libraries/core.lib.php'; -$GLOBALS['PMA_String'] = $PMA_String; +$GLOBALS['PMA_String'] = new PMA_String(); require_once 'libraries/Config.class.php'; $CFG = new PMA_Config(); +// Initialize PMA_VERSION variable define('PMA_VERSION', $CFG->get('PMA_VERSION')); unset($CFG); diff --git a/test/classes/plugin/auth/PMA_AuthenticationCookie_test.php b/test/classes/plugin/auth/PMA_AuthenticationCookie_test.php index dc6ea29c50..0e247bd709 100644 --- a/test/classes/plugin/auth/PMA_AuthenticationCookie_test.php +++ b/test/classes/plugin/auth/PMA_AuthenticationCookie_test.php @@ -393,21 +393,6 @@ class PMA_AuthenticationCookie_Test extends PHPUnit_Framework_TestCase $result ); - $this->assertContains( - '$("#recaptcha_reload_btn").addClass("disableAjax");', - $result - ); - - $this->assertContains( - '$("#recaptcha_switch_audio_btn").addClass("disableAjax");', - $result - ); - - $this->assertContains( - '$("#recaptcha_switch_img_btn").addClass("disableAjax");', - $result - ); - $attrInstance->setValue($restoreInstance); }