Permalink
Browse files

adding more tests for app::import to show proper usage of importing p…

…arent classes
  • Loading branch information...
1 parent df6d627 commit 0c59c137e845adda80a91abe46674c845ec12326 gwoo committed Jul 25, 2009
Showing with 10 additions and 1 deletion.
  1. +10 −1 cake/tests/cases/libs/configure.test.php
@@ -385,7 +385,16 @@ function testClassLoading() {
$file = App::import();
$this->assertTrue($file);
- $file = App::import('Core', 'Model', false);
+ $file = App::import('Model', 'Model', false);
+ $this->assertTrue($file);
+
+ $file = App::import('Controller', 'Controller', false);
+ $this->assertTrue($file);
+
+ $file = App::import('Component', 'Component', false);
+ $this->assertTrue($file);
+
+ $file = App::import('Shell', 'Shell', false);
$this->assertTrue($file);
$file = App::import('Model', 'SomeRandomModelThatDoesNotExist', false);

0 comments on commit 0c59c13

Please sign in to comment.