Permalink
Browse files

Allow test run standalone

  • Loading branch information...
nijel committed Apr 26, 2012
1 parent adf36fe commit babc72104599bd7bd14da9fa70794bd3819748bd
Showing with 4 additions and 0 deletions.
  1. +4 −0 test/libraries/rte/PMA_RTN_getEditorForm_test.php
@@ -9,6 +9,7 @@
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 @@ public function setUp()
$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() {}

0 comments on commit babc721

Please sign in to comment.