Permalink
Browse files

App::import to App::uses

  • Loading branch information...
dereuromark committed Sep 25, 2013
1 parent c713927 commit 0ae69aace90c9219437839270b9db9605f39df65
@@ -279,7 +279,7 @@ public function isLoadableClass($package, $class) {
*/
public function buildTestSubject($type, $class) {
ClassRegistry::flush();
- App::import($type, $class);
+ App::uses($class, $type);
$class = $this->getRealClassName($type, $class);
if (strtolower($type) === 'model') {
$instance = ClassRegistry::init($class);
@@ -24,7 +24,6 @@
App::uses('File', 'Utility');
App::uses('String', 'Utility');
App::uses('View', 'View');
-App::import('I18n', 'Multibyte');
/**
* Cake e-mail class.
@@ -980,7 +979,7 @@ public function domain($domain = null) {
* 'contentDisposition' => false
* ));
* }}}
- *
+ *
* Attach a file from string and specify additional properties:
*
* {{{
@@ -20,7 +20,7 @@
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
-App::import('Model', 'ConnectionManager');
+App::uses('ConnectionManager', 'Model');
/**
* Data Sanitization.

0 comments on commit 0ae69aa

Please sign in to comment.