mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
classify the first cli argument for this task
the $type is used to lookup in the $classTypes property what kind of entity is being baked. if it's underscored, getRealClassName will bail on it's first condition of "is it in the $classTypes property" producing mostly useless test stubs for everything except models
This commit is contained in:
parent
6a744b277e
commit
9444af2f81
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ class TestTask extends BakeTask {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count($this->args) > 1) {
|
if (count($this->args) > 1) {
|
||||||
$type = Inflector::underscore($this->args[0]);
|
$type = Inflector::classify($this->args[0]);
|
||||||
if ($this->bake($type, $this->args[1])) {
|
if ($this->bake($type, $this->args[1])) {
|
||||||
$this->out('<success>Done</success>');
|
$this->out('<success>Done</success>');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue