diff --git a/cake/tests/cases/libs/model/datasources/dbo/dbo_mysql.test.php b/cake/tests/cases/libs/model/datasources/dbo/dbo_mysql.test.php index 9a4bc3a80..ac3ff53fc 100644 --- a/cake/tests/cases/libs/model/datasources/dbo/dbo_mysql.test.php +++ b/cake/tests/cases/libs/model/datasources/dbo/dbo_mysql.test.php @@ -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. diff --git a/cake/tests/cases/libs/model/datasources/dbo_source.test.php b/cake/tests/cases/libs/model/datasources/dbo_source.test.php index 36f9e53ff..4afbbc533 100644 --- a/cake/tests/cases/libs/model/datasources/dbo_source.test.php +++ b/cake/tests/cases/libs/model/datasources/dbo_source.test.php @@ -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';