From 02f66ed3fa997056818e3b254f23e7a139b39baa Mon Sep 17 00:00:00 2001 From: mark_story Date: Mon, 7 Apr 2014 13:09:03 -0400 Subject: [PATCH] Fix failing tests. --- src/Console/Command/BakeShell.php | 2 +- tests/TestCase/Console/Command/CompletionShellTest.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Console/Command/BakeShell.php b/src/Console/Command/BakeShell.php index 8bacdbfa28a..5bf971b5297 100644 --- a/src/Console/Command/BakeShell.php +++ b/src/Console/Command/BakeShell.php @@ -249,7 +249,7 @@ public function getOptionParser() { 'help' => __d('cake_console', 'Theme to use when baking code.') ]); - foreach ($this->tasks as $task) { + foreach ($this->_taskMap as $task => $config) { $taskParser = $this->{$task}->getOptionParser(); $parser->addSubcommand(Inflector::underscore($task), [ 'help' => $taskParser->description(), diff --git a/tests/TestCase/Console/Command/CompletionShellTest.php b/tests/TestCase/Console/Command/CompletionShellTest.php index a6a245b3e3c..7f27ca6c360 100644 --- a/tests/TestCase/Console/Command/CompletionShellTest.php +++ b/tests/TestCase/Console/Command/CompletionShellTest.php @@ -164,7 +164,7 @@ public function testSubCommandsCorePlugin() { $this->Shell->runCommand('subCommands', array('subCommands', 'CORE.bake')); $output = $this->Shell->stdout->output; - $expected = "behavior component controller fixture helper model plugin project test view\n"; + $expected = "behavior component controller fixture helper model plugin project test view widget zerg\n"; $this->assertEquals($expected, $output); } @@ -229,7 +229,7 @@ public function testSubCommands() { $this->Shell->runCommand('subCommands', array('subCommands', 'bake')); $output = $this->Shell->stdout->output; - $expected = "behavior component controller fixture helper model plugin project test view\n"; + $expected = "behavior component controller fixture helper model plugin project test view widget zerg\n"; $this->assertEquals($expected, $output); }