mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
Fix options in OptionParser for TestTask
Fix the allowed options for type to allow Camelcase versions as well.
This commit is contained in:
parent
30225520ff
commit
72006b9369
1 changed files with 7 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Reference in a new issue