mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Fixing issues in PluginTask test due to addition of cake/plugins. Fixing undefined variable.
This commit is contained in:
parent
2ae5d45180
commit
4583873379
2 changed files with 2 additions and 2 deletions
|
@ -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)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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');
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue