Skip to content

Commit

Permalink
CollectionTest: Fix setAddElement() call
Browse files Browse the repository at this point in the history
  • Loading branch information
TAINCER committed Feb 14, 2023
1 parent e1d6914 commit 7f93ebc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/CollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7f93ebc

Please sign in to comment.