Skip to content
Snippets Groups Projects
Commit 722115ee authored by Demian Katz's avatar Demian Katz
Browse files

Resynchronized test/bootstrap.php with public/index.php.

parent 90f1c541
Branches
Tags
No related merge requests found
......@@ -7,15 +7,37 @@ define('VUFIND_PHPUNIT_RUNNING', 1);
define('VUFIND_PHPUNIT_MODULE_PATH', __DIR__);
// Define path to application directory
defined('APPLICATION_PATH') || define('APPLICATION_PATH', realpath(dirname(__DIR__) . '/../..'));
defined('APPLICATION_PATH')
|| define(
'APPLICATION_PATH',
(getenv('VUFIND_APPLICATION_PATH') ? getenv('VUFIND_APPLICATION_PATH')
: dirname(__DIR__) . '/../..')
);
// Define application environment
defined('APPLICATION_ENV')
|| define('APPLICATION_ENV', (getenv('VUFIND_ENV') ? getenv('VUFIND_ENV') : 'testing'));
|| define(
'APPLICATION_ENV',
(getenv('VUFIND_ENV') ? getenv('VUFIND_ENV') : 'testing')
);
// Define default search backend identifier
defined('DEFAULT_SEARCH_BACKEND') || define('DEFAULT_SEARCH_BACKEND', 'VuFind');
// Define path to local override directory
defined('LOCAL_OVERRIDE_DIR')
|| define('LOCAL_OVERRIDE_DIR', (getenv('VUFIND_LOCAL_DIR') ? getenv('VUFIND_LOCAL_DIR') : ''));
|| define(
'LOCAL_OVERRIDE_DIR',
(getenv('VUFIND_LOCAL_DIR') ? getenv('VUFIND_LOCAL_DIR') : '')
);
// Define path to cache directory
defined('LOCAL_CACHE_DIR')
|| define(
'LOCAL_CACHE_DIR',
(getenv('VUFIND_CACHE_DIR')
? getenv('VUFIND_CACHE_DIR') : LOCAL_OVERRIDE_DIR . '/cache')
);
chdir(APPLICATION_PATH);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment