mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 02:26:17 +00:00
Removed unnecessary imports and ensured model import. Fixes #1453
This commit is contained in:
parent
46d14c51a0
commit
68799c9828
2 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -276,6 +276,7 @@ class ControllerTestCase extends CakeTestCase {
|
|||
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));
|
||||
|
|
Loading…
Add table
Reference in a new issue