mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
allow baking tests for controllers with uses
if a controller has public $uses => array('MyPlugin.MyModel') in their controller - the bake controller task will fail because `$controller->MyPlugin.MyModel` doesn't exist
This commit is contained in:
parent
6725a30fe2
commit
af4a2efc33
1 changed files with 1 additions and 0 deletions
|
@ -390,6 +390,7 @@ class TestTask extends BakeTask {
|
|||
$models = $subject->uses;
|
||||
}
|
||||
foreach ($models as $model) {
|
||||
list($plugin, $model) = pluginSplit($model);
|
||||
$this->_processModel($subject->{$model});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue