From b1a2352a56c01b64e8c9b0efb58932cf2f05b0ec Mon Sep 17 00:00:00 2001 From: Philo Hermans Date: Sun, 30 Jul 2023 23:43:56 +0200 Subject: [PATCH] Fix tests --- src/Modal.php | 2 +- tests/LivewireModalTest.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Modal.php b/src/Modal.php index b57904c..1c1cb13 100644 --- a/src/Modal.php +++ b/src/Modal.php @@ -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(), diff --git a/tests/LivewireModalTest.php b/tests/LivewireModalTest.php index 726d131..41c9470 100644 --- a/tests/LivewireModalTest.php +++ b/tests/LivewireModalTest.php @@ -29,6 +29,7 @@ public function testOpenModalEventListener(): void $id => [ 'name' => $component, 'arguments' => $arguments, + 'attributes' => $arguments, // Deprecated 'modalAttributes' => $modalAttributes, ], ]) @@ -58,6 +59,7 @@ public function testDestroyComponentEventListener(): void $id => [ 'name' => $component, 'arguments' => $arguments, + 'attributes' => $arguments, // Deprecated 'modalAttributes' => $modalAttributes, ], ])