Adding tests for previous commit.

This commit is contained in:
Mark Story 2010-01-06 21:26:52 -05:00
parent 467ae1f4fd
commit 65a12ed902

View file

@ -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();
}
/**