Skip to content

Commit

Permalink
add test for app folder for libraries support
Browse files Browse the repository at this point in the history
  • Loading branch information
skie committed Oct 21, 2009
1 parent 6d4fe6b commit 1454ea5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cake/tests/cases/libs/configure.test.php
Expand Up @@ -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)
));

Expand All @@ -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'));
Expand Down

0 comments on commit 1454ea5

Please sign in to comment.