Fixing constants for test suite

This commit is contained in:
José Lorenzo Rodríguez 2010-12-18 22:02:25 -04:30
parent 5efa201b9b
commit 8bcabdea6a
3 changed files with 3 additions and 13 deletions

View file

@ -72,12 +72,7 @@ if (!include(CORE_PATH . 'Cake' . DS . 'bootstrap.php')) {
trigger_error("CakePHP core could not be found. Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to the directory containing your " . DS . "cake core directory and your " . DS . "vendors root directory.", E_USER_ERROR);
}
$corePath = App::core('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);
}
define('TEST_CAKE_CORE_INCLUDE_PATH', LIBS);
if (Configure::read('debug') < 1) {
die(__('Debug setting does not allow access to this url.', true));

View file

@ -160,13 +160,7 @@ class TestSuiteShell extends Shell {
* @return void
*/
public function initialize() {
$corePath = App::core('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);
}
define('TEST_CAKE_CORE_INCLUDE_PATH', LIBS);
$this->_dispatcher = new CakeTestSuiteDispatcher();
$this->_dispatcher->loadTestFramework();
}

View file

@ -17,6 +17,7 @@
* @since CakePHP(tm) v 1.2.0.4206
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
App::uses('Folder', 'Utility');
App::uses('File', 'Utility');
/**