Fixes OptionsGeneration Test failing (#5327)
As [mentioned here](9dca130fae (commitcomment-43513975)), this fixes the test failure.
Co-authored-by: Luke Towers <github@luketowers.ca>
This commit is contained in:
parent
c8899898e6
commit
d95e282910
|
|
@ -20,6 +20,11 @@ class FormTestModel extends Model
|
|||
{
|
||||
return ['dropdown', 'options'];
|
||||
}
|
||||
|
||||
public function staticMethodOptions()
|
||||
{
|
||||
return ['static', 'method'];
|
||||
}
|
||||
}
|
||||
|
||||
class FormHelper
|
||||
|
|
@ -160,7 +165,7 @@ class FormTest extends PluginTestCase
|
|||
'fields' => [
|
||||
'static_method_options' => [
|
||||
'type' => 'dropdown',
|
||||
'options' => '\FormHelper::staticMethodOptions',
|
||||
'options' => 'FormHelper::staticMethodOptions',
|
||||
'expect' => ['static', 'method'],
|
||||
],
|
||||
'callable_options' => [
|
||||
|
|
|
|||
Loading…
Reference in New Issue