summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/mailfunc.php1
-rwxr-xr-xtests/runtests.sh1
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/mailfunc.php b/tests/mailfunc.php
index 755cadc5e..5a17d31c9 100644
--- a/tests/mailfunc.php
+++ b/tests/mailfunc.php
@@ -16,6 +16,7 @@ class rcube_test_mailfunc extends UnitTestCase
$GLOBALS['RCMAIL'] = $RCMAIL = rcmail::get_instance();
$GLOBALS['OUTPUT'] = $OUTPUT = $RCMAIL->load_gui();
$RCMAIL->action = 'spell';
+ $RCMAIL->imap_init(false);
$IMAP = $RCMAIL->imap;
require_once 'steps/mail/func.inc';
diff --git a/tests/runtests.sh b/tests/runtests.sh
index 04a9a3745..aeeea94e1 100755
--- a/tests/runtests.sh
+++ b/tests/runtests.sh
@@ -27,6 +27,7 @@ if (!defined('SIMPLETEST')) define('SIMPLETEST', '/www/simpletest/');
if (!defined('INSTALL_PATH')) define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' );
define('TESTS_DIR', dirname(__FILE__) . '/');
+define('RCMAIL_CONFIG_DIR', TESTS_DIR . 'config');
require_once(SIMPLETEST . 'unit_tester.php');
require_once(SIMPLETEST . 'reporter.php');