cleaning up requires to be App::import()

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7367 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
mark_story 2008-07-27 03:36:30 +00:00
parent 8d2e4721e3
commit 8185fb87fc
2 changed files with 3 additions and 7 deletions

View file

@ -28,10 +28,8 @@
if (!defined('CAKEPHP_UNIT_TEST_EXECUTION')) {
define('CAKEPHP_UNIT_TEST_EXECUTION', 1);
}
require_once LIBS.'model'.DS.'model.php';
require_once LIBS.'model'.DS.'datasources'.DS.'datasource.php';
require_once LIBS.'model'.DS.'datasources'.DS.'dbo_source.php';
require_once LIBS.'model'.DS.'datasources'.DS.'dbo'.DS.'dbo_mysql.php';
App::import('Core', array('Model', 'DataSource', 'DboSource', 'DboMysql'));
/**
* Short description for class.

View file

@ -29,9 +29,7 @@
if (!defined('CAKEPHP_UNIT_TEST_EXECUTION')) {
define('CAKEPHP_UNIT_TEST_EXECUTION', 1);
}
uses('model'.DS.'model', 'model'.DS.'datasources'.DS.'datasource',
'model'.DS.'datasources'.DS.'dbo_source', 'model'.DS.'datasources'.DS.'dbo'.DS.'dbo_mysql');
App::import('Core', array('Model', 'DataSource', 'DboSource', 'DboMysql'));
require_once dirname(dirname(__FILE__)) . DS . 'models.php';