From 97a0dbbc09b78396fab66cde61a4203363742828 Mon Sep 17 00:00:00 2001 From: Timm Ortloff Date: Tue, 14 Feb 2023 11:48:10 +0100 Subject: [PATCH] CollectionTest: Fix `setAddElement()` call --- tests/CollectionTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/CollectionTest.php b/tests/CollectionTest.php index f011e829..23821615 100644 --- a/tests/CollectionTest.php +++ b/tests/CollectionTest.php @@ -207,9 +207,9 @@ public function testMultipleCollections() $inner = (new Collection('innerCollection')) ->setLabel('Inner Collection') - ->setAddElement(new SubmitButtonElement('inner_add_trigger', [ + ->setAddElement('submitButton', 'inner_add_trigger', [ 'label' => 'Inner Add Trigger' - ])); + ]); $inner->onAssembleGroup(function ($innerGroup, $innerAddElement, $innerRemoveElement) { $innerGroup->addElement($innerAddElement);