Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
PhiloNL committed Jul 30, 2023
1 parent 7239411 commit b1a2352
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Modal.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function openModal($component, $arguments = [], $modalAttributes = []): v

$this->components[$id] = [
'name' => $component,
'attributes' => $arguments,
'attributes' => $arguments, // Deprecated
'arguments' => $arguments,
'modalAttributes' => array_merge([
'closeOnClickAway' => $componentClass::closeModalOnClickAway(),
Expand Down
2 changes: 2 additions & 0 deletions tests/LivewireModalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public function testOpenModalEventListener(): void
$id => [
'name' => $component,
'arguments' => $arguments,
'attributes' => $arguments, // Deprecated
'modalAttributes' => $modalAttributes,
],
])
Expand Down Expand Up @@ -58,6 +59,7 @@ public function testDestroyComponentEventListener(): void
$id => [
'name' => $component,
'arguments' => $arguments,
'attributes' => $arguments, // Deprecated
'modalAttributes' => $modalAttributes,
],
])
Expand Down

0 comments on commit b1a2352

Please sign in to comment.