From b005927f919cbc09dccf71e8c638be45a8af37d0 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Sat, 19 Jan 2013 12:16:16 +0100 Subject: Add basic tests for plugins --- tests/bootstrap.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/bootstrap.php') 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."); +} -- cgit v1.2.3