Permalink
Browse files

add test for app folder for libraries support

  • Loading branch information...
1 parent 6d4fe6b commit 1454ea54a2a1c7789ce3e4853776ad529cbce1f2 @skie skie committed Oct 21, 2009
Showing with 6 additions and 1 deletion.
  1. +6 −1 cake/tests/cases/libs/configure.test.php
@@ -494,6 +494,7 @@ function testClassLoading() {
}
App::build(array(
+ 'libs' => array(TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'libs' . DS),
'plugins' => array(TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'plugins' . DS)
));
@@ -505,7 +506,11 @@ function testClassLoading() {
$result = App::import('Lib', 'TestPlugin.TestPluginLibrary');
$this->assertTrue($result);
$this->assertTrue(class_exists('TestPluginLibrary'));
-
+
+ $result = App::import('Lib', 'Library');
+ $this->assertTrue($result);
+ $this->assertTrue(class_exists('Library'));
+
$result = App::import('Helper', 'TestPlugin.OtherHelper');
$this->assertTrue($result);
$this->assertTrue(class_exists('OtherHelperHelper'));

0 comments on commit 1454ea5

Please sign in to comment.