Permalink
Browse files

Fixing issues in PluginTask test due to addition of cake/plugins. Fix…

…ing undefined variable.
  • Loading branch information...
1 parent 2ae5d45 commit 4583873379da5b39e7350b1343ec0a90b0d4b4a7 @markstory markstory committed Aug 3, 2009
Showing with 2 additions and 2 deletions.
  1. +1 −1 cake/console/libs/tasks/plugin.php
  2. +1 −1 cake/tests/cases/console/libs/tasks/plugin.test.php
View
2 cake/console/libs/tasks/plugin.php
@@ -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)));
}
}
View
2 cake/tests/cases/console/libs/tasks/plugin.test.php
@@ -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');

0 comments on commit 4583873

Please sign in to comment.