diff --git a/modules/json_form_widget/tests/src/Unit/ArrayHelperTest.php b/modules/json_form_widget/tests/src/Unit/ArrayHelperTest.php index 7819dc8bd4..a28f93d42c 100644 --- a/modules/json_form_widget/tests/src/Unit/ArrayHelperTest.php +++ b/modules/json_form_widget/tests/src/Unit/ArrayHelperTest.php @@ -34,10 +34,12 @@ public function testComplex() { $options = (new Options()) ->add('json_form.object_helper', ObjectHelper::class) + ->add('json_form.string_helper', StringHelper::class) ->index(0); $chain = (new Chain($this)) ->add(Container::class, 'get', $options) ->add(ObjectHelper::class, 'handleObjectElement', $object) + ->add(StringHelper::class, 'handleStringElement', $object) ->getMock(); $array_helper = ArrayHelper::create($chain); @@ -59,7 +61,9 @@ public function testComplex() { ->add(SchemaRetriever::class, 'retrieve', $distribution_schema) ->add(SchemaUiHandler::class, 'setSchemaUi') ->add(ObjectHelper::class, 'handleObjectElement', $object) - ->add(ObjectHelper::class, 'setBuilder'); + ->add(ObjectHelper::class, 'setBuilder') + ->add(StringHelper::class, 'handleStringElement', $object) + ->add(StringHelper::class, 'setBuilder'); $container = $container_chain->getMock(); \Drupal::setContainer($container);