diff --git a/cake/console/libs/tasks/test.php b/cake/console/libs/tasks/test.php index 3c21c58da..1b53260c1 100644 --- a/cake/console/libs/tasks/test.php +++ b/cake/console/libs/tasks/test.php @@ -191,7 +191,7 @@ class TestTask extends Shell { * @return string Class name the user chose. **/ function getClassName($objectType) { - $options = Configure::listObjects(strtolower($objectType)); + $options = App::objects(strtolower($objectType)); $this->out(sprintf(__('Choose a %s class', true), $objectType)); $keys = array(); foreach ($options as $key => $option) { diff --git a/cake/tests/cases/console/libs/tasks/test.test.php b/cake/tests/cases/console/libs/tasks/test.test.php index c6db6244d..4fd23bb98 100644 --- a/cake/tests/cases/console/libs/tasks/test.test.php +++ b/cake/tests/cases/console/libs/tasks/test.test.php @@ -259,7 +259,7 @@ class TestTaskTest extends CakeTestCase { * @return void **/ function testGetClassName() { - $objects = Configure::listObjects('model'); + $objects = App::objects('model'); $skip = $this->skipIf(empty($objects), 'No models in app, this test will fail. %s'); if ($skip) { return; @@ -270,7 +270,7 @@ class TestTaskTest extends CakeTestCase { $this->Task->setReturnValueAt(1, 'in', 1); $result = $this->Task->getClassName('Model'); - $options = Configure::listObjects('model'); + $options = App::objects('model'); $this->assertEqual($result, $options[0]); }