Skip to content

Commit

Permalink
Applying patch from 'savant' Fixes usage of deprecated methods. Fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Aug 12, 2009
1 parent 0a1d8ca commit ae628f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cake/console/libs/tasks/test.php
Expand Up @@ -191,7 +191,7 @@ function getObjectType() {
* @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) {
Expand Down
4 changes: 2 additions & 2 deletions cake/tests/cases/console/libs/tasks/test.test.php
Expand Up @@ -259,7 +259,7 @@ function testRegistryClearWhenBuildingTestObjects() {
* @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;
Expand All @@ -270,7 +270,7 @@ function testGetClassName() {

$this->Task->setReturnValueAt(1, 'in', 1);
$result = $this->Task->getClassName('Model');
$options = Configure::listObjects('model');
$options = App::objects('model');
$this->assertEqual($result, $options[0]);
}

Expand Down

0 comments on commit ae628f7

Please sign in to comment.