diff --git a/cake/tests/cases/libs/configure.test.php b/cake/tests/cases/libs/configure.test.php index c9cab7648..33803dafa 100644 --- a/cake/tests/cases/libs/configure.test.php +++ b/cake/tests/cases/libs/configure.test.php @@ -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));