Fixing issues in PluginTask test due to addition of cake/plugins. Fixing undefined variable.

This commit is contained in:
mark_story 2009-08-02 20:42:08 -04:00
parent 2ae5d45180
commit 4583873379
2 changed files with 2 additions and 2 deletions

View file

@ -111,7 +111,7 @@ class PluginTask extends Shell {
}
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 file

@ -201,7 +201,7 @@ class PluginTaskTest extends CakeTestCase {
**/
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');