Skip to content

Commit

Permalink
Removed unnecessary imports and ensured model import. Fixes #1453
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyharris committed Jan 21, 2011
1 parent 46d14c5 commit 68799c9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 0 additions & 4 deletions cake/tests/cases/libs/controller_test_case.test.php
Expand Up @@ -18,10 +18,6 @@
* @since CakePHP v 2.0
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
App::import('Controller', 'Controller', false);
App::import('Core', array('AppModel', 'Model'));
require_once TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'lib' . DS . 'reporter' . DS . 'cake_html_reporter.php';
require_once dirname(__FILE__) . DS . 'model' . DS . 'models.php';

/**
* AppController class
Expand Down
1 change: 1 addition & 0 deletions cake/tests/lib/controller_test_case.php
Expand Up @@ -276,6 +276,7 @@ public function generate($controller, $mocks = array()) {
if ($methods === true) {
$methods = array();
}
ClassRegistry::init($model);
list($plugin, $name) = pluginSplit($model);
$config = array_merge((array)$config, array('name' => $model));
$_model = $this->getMock($name, $methods, array($config));
Expand Down

0 comments on commit 68799c9

Please sign in to comment.