Skip to content

Commit

Permalink
Fix failing tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Apr 8, 2014
1 parent 3a606ce commit 02f66ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Console/Command/BakeShell.php
Expand Up @@ -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(),
Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase/Console/Command/CompletionShellTest.php
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 02f66ed

Please sign in to comment.