From babc72104599bd7bd14da9fa70794bd3819748bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 26 Apr 2012 14:03:28 +0200 Subject: [PATCH] Allow test run standalone --- test/libraries/rte/PMA_RTN_getEditorForm_test.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/libraries/rte/PMA_RTN_getEditorForm_test.php b/test/libraries/rte/PMA_RTN_getEditorForm_test.php index d448919082..c359905108 100644 --- a/test/libraries/rte/PMA_RTN_getEditorForm_test.php +++ b/test/libraries/rte/PMA_RTN_getEditorForm_test.php @@ -9,6 +9,7 @@ require_once 'libraries/common.lib.php'; require_once 'libraries/php-gettext/gettext.inc'; require_once 'libraries/url_generating.lib.php'; require_once './libraries/Types.class.php'; +require_once 'libraries/Theme.class.php'; /* * Include to test. */ @@ -23,6 +24,9 @@ class PMA_RTN_getEditorForm_test extends PHPUnit_Framework_TestCase $cfg['ShowFunctionFields'] = false; $GLOBALS['PMA_Types'] = new PMA_Types_MySQL(); + $_SESSION['PMA_Theme'] = new PMA_Theme(); + $GLOBALS['pmaThemePath'] = $_SESSION['PMA_Theme']->getPath(); + $GLOBALS['pmaThemeImage'] = 'theme/'; if (! function_exists('PMA_generateCharsetDropdownBox')) { function PMA_generateCharsetDropdownBox() {}