From 65a12ed9022949485cff597974a83abee6fd5441 Mon Sep 17 00:00:00 2001 From: Mark Story Date: Wed, 6 Jan 2010 21:26:52 -0500 Subject: [PATCH] Adding tests for previous commit. --- cake/tests/cases/libs/configure.test.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/cake/tests/cases/libs/configure.test.php b/cake/tests/cases/libs/configure.test.php index 27eb6d27a..6f65e18e3 100644 --- a/cake/tests/cases/libs/configure.test.php +++ b/cake/tests/cases/libs/configure.test.php @@ -227,7 +227,7 @@ class ConfigureTest extends CakeTestCase { $result = Configure::load('config'); $this->assertTrue($result === null); - + $result = Configure::load('../../index'); $this->assertFalse($result); } @@ -421,6 +421,17 @@ class AppImportTest extends UnitTestCase { $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(); } /**