Fixing SessionComponent tests

This commit is contained in:
José Lorenzo Rodríguez 2011-01-28 02:00:20 -04:30
parent 024bff2126
commit 4a55ef47cf
3 changed files with 4 additions and 3 deletions

View file

@ -20,6 +20,8 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
App::uses('Controller', 'Controller');
/**
* This is a placeholder class.
* Create the same file in app/app_controller.php

View file

@ -17,6 +17,7 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
App::uses('Component', 'Controller');
App::uses('CakeSession', 'Model/Datasource');
/**

View file

@ -66,9 +66,7 @@ class Object {
if (empty($url)) {
return false;
}
if (!class_exists('dispatcher')) {
require LIBS . 'dispatcher.php';
}
App::uses('Dispatcher', 'Routing');
if (in_array('return', $extra, true)) {
$extra = array_merge($extra, array('return' => 0, 'autoRender' => 1));
}