Fix more failing tests

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
This commit is contained in:
Madhura Jayaratne 2015-10-16 18:39:58 +11:00
parent a19c8a2e83
commit 3ef4a744c6
2 changed files with 12 additions and 0 deletions

View File

@ -20,6 +20,16 @@ require_once 'libraries/core.lib.php';
*/
class PMA_Form_Processing_Test extends PHPUnit_Framework_TestCase
{
/**
* Prepares environment for the test.
*
* @return void
*/
public function setUp()
{
$GLOBALS['server'] = 1;
$GLOBALS['cfg']['ServerDefault'] = 1;
}
/**
* Test for process_formset()

View File

@ -33,6 +33,8 @@ class PMA_DesignerTest extends PHPUnit_Framework_TestCase
$GLOBALS['cfg']['ServerDefault'] = 1;
$GLOBALS['cfg']['PDFPageSizes'] = array('A3', 'A4');
$GLOBALS['cfg']['PDFDefaultPageSize'] = 'A4';
$GLOBALS['cfg']['Schema']['pdf_orientation'] = 'L';
$GLOBALS['cfg']['Schema']['pdf_paper'] = 'A4';
$_SESSION = array(
'relation' => array(