Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add test for app folder for libraries support

  • Loading branch information...
commit 1454ea54a2a1c7789ce3e4853776ad529cbce1f2 1 parent 6d4fe6b
@skie skie authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 cake/tests/cases/libs/configure.test.php
View
7 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'));
Please sign in to comment.
Something went wrong with that request. Please try again.