Browse Source

Fix options in OptionParser for TestTask

Fix the allowed options for type to allow Camelcase versions as well.
mark_story 14 years ago
parent
commit
72006b9369
1 changed files with 7 additions and 1 deletions
  1. 7 1
      lib/Cake/Console/Command/Task/TestTask.php

+ 7 - 1
lib/Cake/Console/Command/Task/TestTask.php

@@ -468,7 +468,13 @@ class TestTask extends BakeTask {
 		return $parser->description(__d('cake_console', 'Bake test case skeletons for classes.'))
 			->addArgument('type', array(
 				'help' => __d('cake_console', 'Type of class to bake, can be any of the following: controller, model, helper, component or behavior.'),
-				'choices' => array('controller', 'model', 'helper', 'component', 'behavior')
+				'choices' => array(
+					'Controller', 'controller', 
+					'Model', 'model',
+					'Helper', 'helper',
+					'Component', 'component',
+					'Behavior', 'behavior'
+				)
 			))->addArgument('name', array(
 				'help' => __d('cake_console', 'An existing class to bake tests for.')
 			))->addOption('plugin', array(