From 0c59c137e845adda80a91abe46674c845ec12326 Mon Sep 17 00:00:00 2001 From: gwoo Date: Sat, 25 Jul 2009 16:39:09 -0700 Subject: [PATCH] adding more tests for app::import to show proper usage of importing parent classes --- cake/tests/cases/libs/configure.test.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/cake/tests/cases/libs/configure.test.php b/cake/tests/cases/libs/configure.test.php index 7c2df1600..122df91fa 100644 --- a/cake/tests/cases/libs/configure.test.php +++ b/cake/tests/cases/libs/configure.test.php @@ -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);