Browse Source

Fix failing tests.

mark_story 12 years ago
parent
commit
1585f119bf

+ 1 - 1
src/Console/Command/Task/SimpleBakeTask.php

@@ -77,7 +77,7 @@ abstract class SimpleBakeTask extends BakeTask {
 		if (empty($name)) {
 			return $this->error('You must provide a name to bake a ' . $this->name());
 		}
-		$name = Inflector::classify($name);
+		$name = Inflector::camelize($name);
 		$this->bake($name);
 		$this->bakeTest($name);
 	}

+ 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(18))
+		$this->Shell->expects($this->exactly(19))
 			->method('out');
 
 		$this->Shell->loadTasks();
@@ -135,6 +135,7 @@ class BakeShellTest extends TestCase {
 		$this->Shell->loadTasks();
 		$expected = [
 			'Behavior',
+			'Cell',
 			'Component',
 			'Controller',
 			'Fixture',

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

@@ -164,7 +164,7 @@ class CompletionShellTest extends TestCase {
 		$this->Shell->runCommand(['subcommands', 'CORE.bake']);
 		$output = $this->out->output;
 
-		$expected = "behavior component controller fixture helper model plugin project shell test view widget zerg\n";
+		$expected = "behavior cell 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', 'bake']);
 		$output = $this->out->output;
 
-		$expected = "behavior component controller fixture helper model plugin project shell test view widget zerg\n";
+		$expected = "behavior cell component controller fixture helper model plugin project shell test view widget zerg\n";
 		$this->assertEquals($expected, $output);
 	}