1
0
mirror of https://github.com/e107inc/e107.git synced 2025-06-06 10:54:57 +02:00
php-e107/tests/_bootstrap.php
Deltik e485b16d65
APP_PATH is now customizable in config.yml
Configuration option is "app_path" (string)
2018-02-16 17:32:07 -06:00

12 lines
278 B
PHP

<?php
$params = include(codecept_root_dir()."/lib/config.php");
$app_path = $params['app_path'] ?: codecept_root_dir()."/e107";
// Relative path
if (substr($app_path, 0, 1) !== '/')
$app_path = codecept_root_dir() . "/${app_path}";
define('APP_PATH', realpath($app_path));