From 4caf2f6635018a3b6616f2d60b7a60a6332b4126 Mon Sep 17 00:00:00 2001 From: thomasb Date: Wed, 21 Apr 2010 20:45:27 +0000 Subject: Fix unit tests to run with changed rcmail class + use own config for tests git-svn-id: https://svn.roundcube.net/trunk@3524 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/tests/mailfunc.php | 1 + roundcubemail/tests/runtests.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/roundcubemail/tests/mailfunc.php b/roundcubemail/tests/mailfunc.php index 755cadc5e..5a17d31c9 100644 --- a/roundcubemail/tests/mailfunc.php +++ b/roundcubemail/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/roundcubemail/tests/runtests.sh b/roundcubemail/tests/runtests.sh index 04a9a3745..aeeea94e1 100755 --- a/roundcubemail/tests/runtests.sh +++ b/roundcubemail/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'); -- cgit v1.2.3