mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
e49ee50d31
Moved all test files to e107_tests subdirectory
19 lines
597 B
PHP
19 lines
597 B
PHP
<?php
|
|
Codeception\Util\Autoload::addNamespace('', codecept_root_dir().'/tests/unit');
|
|
|
|
define('PARAMS_GENERATOR', realpath(codecept_root_dir()."/lib/config.php"));
|
|
|
|
$params = include(PARAMS_GENERATOR);
|
|
|
|
$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));
|
|
define('PARAMS_SERIALIZED', serialize($params));
|
|
|
|
// Provide a way to register callbacks that execute before Codeception's
|
|
include(codecept_root_dir()."/lib/PriorityCallbacks.php");
|