adding more tests for app::import to show proper usage of importing parent classes

This commit is contained in:
gwoo 2009-07-25 16:39:09 -07:00
parent df6d62764f
commit 0c59c137e8

View file

@ -385,7 +385,16 @@ class AppImportTest extends UnitTestCase {
$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);