Skip to content

Commit

Permalink
GetDKAN#4306: properties of schema array/items do not respect propert…
Browse files Browse the repository at this point in the history
…y specs regarding element type - fix tests
  • Loading branch information
stefan-korn committed Oct 7, 2024
1 parent d1641ef commit 00cd5f7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/json_form_widget/tests/src/Unit/ArrayHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 00cd5f7

Please sign in to comment.