Fixing tests broken by previous commit.

This commit is contained in:
ADmad 2011-11-12 22:51:05 +05:30
parent f2a58117ca
commit 38d7433359
2 changed files with 3 additions and 8 deletions

View file

@ -316,11 +316,6 @@ class AppTest extends CakeTestCase {
$result = App::objects('Model/Behavior', null, false); $result = App::objects('Model/Behavior', null, false);
$this->assertTrue(in_array('TreeBehavior', $result)); $this->assertTrue(in_array('TreeBehavior', $result));
$result = App::objects('controller', null, false);
$this->assertTrue(in_array('PagesController', $result));
$result = App::objects('Controller', null, false);
$this->assertTrue(in_array('PagesController', $result));
$result = App::objects('component', null, false); $result = App::objects('component', null, false);
$this->assertTrue(in_array('AuthComponent', $result)); $this->assertTrue(in_array('AuthComponent', $result));
$result = App::objects('Controller/Component', null, false); $result = App::objects('Controller/Component', null, false);

View file

@ -19,7 +19,7 @@
App::uses('Dispatcher', 'Routing'); App::uses('Dispatcher', 'Routing');
if (!class_exists('AppController', false)) { if (!class_exists('AppController', false)) {
require_once CAKE . 'Controller' . DS . 'AppController.php'; require_once CAKE . 'Test' . DS . 'test_app' . DS . 'Controller' . DS . 'AppController.php';
} elseif (!defined('APP_CONTROLLER_EXISTS')){ } elseif (!defined('APP_CONTROLLER_EXISTS')){
define('APP_CONTROLLER_EXISTS', true); define('APP_CONTROLLER_EXISTS', true);
} }