"Fixing Configure tests with recent changes to the Configure class"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6061 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-11-23 01:18:17 +00:00
parent b7b9bb1d55
commit f80e92825c

View file

@ -37,10 +37,16 @@ class ConfigureTest extends UnitTestCase {
function setUp() {
$this->Configure =& Configure::getInstance();
$corePath = Configure::corePaths('cake');
if (isset($corePath[0])) {
$this->corePath = rtrim($corePath[0], DS) . DS;
} else {
$this->corePath = CAKE_CORE_INCLUDE_PATH;
}
}
function testListCoreObjects() {
$result = $this->Configure->listObjects('class', CAKE_CORE_INCLUDE_PATH . DS . LIBS);
$result = $this->Configure->listObjects('class', $this->corePath . 'libs');
$this->assertTrue(in_array('Xml', $result));
$this->assertTrue(in_array('Cache', $result));
$this->assertTrue(in_array('HttpSocket', $result));