summaryrefslogtreecommitdiff
path: root/tests/bootstrap.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-01-19 12:16:16 +0100
committerAleksander Machniak <alec@alec.pl>2013-01-19 12:17:34 +0100
commit2c195e03654885e2b642e35866443bb6d844eccc (patch)
treec4fdc907f60fe8ba346f7286fe6583aed8722664 /tests/bootstrap.php
parentcc2ee75ea426240417067ee036f254a64a3b7bc0 (diff)
Add basic tests for plugins
Diffstat (limited to 'tests/bootstrap.php')
-rw-r--r--tests/bootstrap.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/bootstrap.php b/tests/bootstrap.php
index a9e25610c..40659ebf0 100644
--- a/tests/bootstrap.php
+++ b/tests/bootstrap.php
@@ -33,3 +33,9 @@ if (@is_dir(TESTS_DIR . 'config')) {
require_once(INSTALL_PATH . 'program/include/iniset.php');
rcmail::get_instance()->config->set('devel_mode', false);
+
+// Extend include path so some plugin test won't fail
+$include_path = ini_get('include_path') . PATH_SEPARATOR . TESTS_DIR . '..';
+if (set_include_path($include_path) === false) {
+ die("Fatal error: ini_set/set_include_path does not work.");
+}