From f53706e535b57ffc1d4eebf82d460afe7f67da3e Mon Sep 17 00:00:00 2001 From: Emiel Popelier Date: Tue, 19 Mar 2024 16:53:13 +0100 Subject: [PATCH] Update AttachActionTest --- tests/src/Tables/AttachActionTest.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/src/Tables/AttachActionTest.php b/tests/src/Tables/AttachActionTest.php index 42af6c74f5..9e00b672c3 100644 --- a/tests/src/Tables/AttachActionTest.php +++ b/tests/src/Tables/AttachActionTest.php @@ -1,5 +1,6 @@ assertTableAttachActionExists('attachActionExists') - ->assertTableAttachActionDoesNotExist('attachActionDoesNotExist'); + ->assertTableActionExists('attachActionExists', fn (AttachAction $action) => true) + ->assertTableActionDoesNotExist('attachActionDoesNotExist'); }); it('can have a multiple select', function () { livewire(PostsTable::class) - ->assertTableAttachActionIsMultipleSelect('attachActionIsMultiple', true) - ->assertTableAttachActionIsNotMultipleSelect('attachActionIsNotMultiple', false); + ->assertTableActionExists('attachActionIsMultiple', fn (AttachAction $action) => $action->isMultiple()) + ->assertTableActionExists('attachActionIsNotMultiple', fn (AttachAction $action) => ! $action->isMultiple()); });