Browse Source

Fix tests that fail when bake tasks are added.

mark_story 12 years ago
parent
commit
0d8670ea1a

+ 2 - 1
tests/TestCase/Console/Command/BakeShellTest.php

@@ -104,7 +104,7 @@ class BakeShellTest extends TestCase {
 			->method('out')
 			->with($this->stringContains('The following commands'));
 
-		$this->Shell->expects($this->exactly(17))
+		$this->Shell->expects($this->exactly(18))
 			->method('out');
 
 		$this->Shell->loadTasks();
@@ -142,6 +142,7 @@ class BakeShellTest extends TestCase {
 			'Model',
 			'Plugin',
 			'Project',
+			'Shell',
 			'Test',
 			'View',
 			'Zerg',

+ 2 - 2
tests/TestCase/Console/Command/CompletionShellTest.php

@@ -164,7 +164,7 @@ class CompletionShellTest extends TestCase {
 		$this->Shell->runCommand('subCommands', array('subCommands', 'CORE.bake'));
 		$output = $this->out->output;
 
-		$expected = "behavior component controller fixture helper model plugin project test view widget zerg\n";
+		$expected = "behavior component controller fixture helper model plugin project shell test view widget zerg\n";
 		$this->assertEquals($expected, $output);
 	}
 
@@ -229,7 +229,7 @@ class CompletionShellTest extends TestCase {
 		$this->Shell->runCommand('subCommands', array('subCommands', 'bake'));
 		$output = $this->out->output;
 
-		$expected = "behavior component controller fixture helper model plugin project test view widget zerg\n";
+		$expected = "behavior component controller fixture helper model plugin project shell test view widget zerg\n";
 		$this->assertEquals($expected, $output);
 	}