mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
"Adding new define to test.php setting the core path to the cake directory"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6062 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
f80e92825c
commit
63b5597632
1 changed files with 7 additions and 0 deletions
|
@ -62,6 +62,13 @@ ini_set('display_errors', 1);
|
|||
if (!include(CORE_PATH . 'cake' . DS . 'bootstrap.php')) {
|
||||
trigger_error("Can't find CakePHP core. Check the value of CAKE_CORE_INCLUDE_PATH in app/webroot/test.php. It should point to the directory containing your " . DS . "cake core directory and your " . DS . "vendors root directory.", E_USER_ERROR);
|
||||
}
|
||||
|
||||
$corePath = Configure::corePaths('cake');
|
||||
if (isset($corePath[0])) {
|
||||
define('TEST_CAKE_CORE_INCLUDE_PATH', rtrim($corePath[0], DS) . DS);
|
||||
} else {
|
||||
define('TEST_CAKE_CORE_INCLUDE_PATH', CAKE_CORE_INCLUDE_PATH);
|
||||
}
|
||||
require_once CAKE . 'tests' . DS . 'lib' . DS . 'test_manager.php';
|
||||
|
||||
if (Configure::read('debug') < 1) {
|
||||
|
|
Loading…
Reference in a new issue