From d95e282910385f73bf7f0df018c49cf90a264e13 Mon Sep 17 00:00:00 2001 From: Saifur Rahman Mohsin Date: Sat, 21 Nov 2020 07:15:20 +0530 Subject: [PATCH] Fixes OptionsGeneration Test failing (#5327) As [mentioned here](https://github.com/octobercms/october/commit/9dca130faee47d598cc6f4e6febe337a652e1f4d#commitcomment-43513975), this fixes the test failure. Co-authored-by: Luke Towers --- tests/unit/backend/widgets/FormTest.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/unit/backend/widgets/FormTest.php b/tests/unit/backend/widgets/FormTest.php index 211fc97a9..e07e4d881 100644 --- a/tests/unit/backend/widgets/FormTest.php +++ b/tests/unit/backend/widgets/FormTest.php @@ -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' => [