mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
"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:
parent
b7b9bb1d55
commit
f80e92825c
1 changed files with 7 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue