Fix some of the failing tests

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
This commit is contained in:
Madhura Jayaratne 2014-10-18 21:59:33 +05:30
parent c4f67f05c8
commit aaa2116b01
2 changed files with 3 additions and 17 deletions

View File

@ -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);

View File

@ -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);
}