Always set global settings for testing
Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
parent
9e93ba5b48
commit
d8c80afae9
@ -30,6 +30,8 @@ class PMA_User_Preferences_Test extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
function setUp()
|
||||
{
|
||||
global $cfg;
|
||||
include 'libraries/config.default.php';
|
||||
$GLOBALS['server'] = 0;
|
||||
$GLOBALS['PMA_PHP_SELF'] = '/phpmyadmin/';
|
||||
}
|
||||
@ -364,7 +366,8 @@ class PMA_User_Preferences_Test extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testUserprefsRedirect()
|
||||
{
|
||||
|
||||
$GLOBALS['lang'] = '';
|
||||
|
||||
$restoreInstance = PMA\libraries\Response::getInstance();
|
||||
|
||||
$mockResponse = $this->getMockBuilder('PMA\libraries\Response')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user