Skip to content

Commit

Permalink
Adding tests for previous commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jan 7, 2010
1 parent 467ae1f commit 65a12ed
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion cake/tests/cases/libs/configure.test.php
Expand Up @@ -227,7 +227,7 @@ function testLoad() {

$result = Configure::load('config');
$this->assertTrue($result === null);

$result = Configure::load('../../index');
$this->assertFalse($result);
}
Expand Down Expand Up @@ -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();
}

/**
Expand Down

0 comments on commit 65a12ed

Please sign in to comment.