Permalink
Browse files

Adding tests for previous commit.

  • Loading branch information...
1 parent 467ae1f commit 65a12ed9022949485cff597974a83abee6fd5441 @markstory markstory committed Jan 7, 2010
Showing with 12 additions and 1 deletion.
  1. +12 −1 cake/tests/cases/libs/configure.test.php
@@ -227,7 +227,7 @@ function testLoad() {
$result = Configure::load('config');
$this->assertTrue($result === null);
-
+
$result = Configure::load('../../index');
$this->assertFalse($result);
}
@@ -421,6 +421,17 @@ function testListObjects() {
$result = App::objects('NonExistingType');
$this->assertFalse($result);
+
+ App::build(array(
+ 'plugins' => array(
+ TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'libs' . DS
+ )
+ ));
+ $result = App::objects('plugin', null, false);
+ $this->assertTrue(in_array('Cache', $result));
+ $this->assertTrue(in_array('Log', $result));
+
+ App::build();
}
/**

0 comments on commit 65a12ed

Please sign in to comment.