From 3ef4a744c65c6fcbf502b702ab77b5925568e12a Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Fri, 16 Oct 2015 18:39:58 +1100 Subject: [PATCH] Fix more failing tests Signed-off-by: Madhura Jayaratne --- test/libraries/PMA_Form_Processing_test.php | 10 ++++++++++ test/libraries/PMA_designer_test.php | 2 ++ 2 files changed, 12 insertions(+) diff --git a/test/libraries/PMA_Form_Processing_test.php b/test/libraries/PMA_Form_Processing_test.php index 9f9418907a..e7f91177fc 100644 --- a/test/libraries/PMA_Form_Processing_test.php +++ b/test/libraries/PMA_Form_Processing_test.php @@ -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() diff --git a/test/libraries/PMA_designer_test.php b/test/libraries/PMA_designer_test.php index 5c58b435ed..7b031e783b 100644 --- a/test/libraries/PMA_designer_test.php +++ b/test/libraries/PMA_designer_test.php @@ -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(