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:
Saifur Rahman Mohsin 2020-11-21 07:15:20 +05:30 committed by GitHub
parent c8899898e6
commit d95e282910
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -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' => [