Skip to content

Commit

Permalink
Fixing issues in PluginTask test due to addition of cake/plugins. Fix…
Browse files Browse the repository at this point in the history
…ing undefined variable.
  • Loading branch information
markstory committed Aug 3, 2009
1 parent 2ae5d45 commit 4583873
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cake/console/libs/tasks/plugin.php
Expand Up @@ -111,7 +111,7 @@ function __interactive($plugin = null) {
}

if (!$this->bake($plugin)) {
$this->err(sprintf(__("An error occured trying to bake: %s in %s", true), $plugin, $this->path . $pluginPath));
$this->err(sprintf(__("An error occured trying to bake: %s in %s", true), $plugin, $this->path . Inflector::underscore($pluginPath)));
}
}

Expand Down
2 changes: 1 addition & 1 deletion cake/tests/cases/console/libs/tasks/plugin.test.php
Expand Up @@ -201,7 +201,7 @@ function testBakeFoldersAndFiles() {
**/
function testExecuteWithNoArgs() {
$this->Task->setReturnValueAt(0, 'in', 'TestPlugin');
$this->Task->setReturnValueAt(1, 'in', '2');
$this->Task->setReturnValueAt(1, 'in', '3');
$this->Task->setReturnValueAt(2, 'in', 'y');
$this->Task->setReturnValueAt(3, 'in', 'n');

Expand Down

0 comments on commit 4583873

Please sign in to comment.