From b1815bb96638f2037877c0a0cad4b4bf0df3dee8 Mon Sep 17 00:00:00 2001 From: Joe <104938042+lrljoe@users.noreply.github.com> Date: Wed, 20 Nov 2024 03:23:54 +0000 Subject: [PATCH] test_can_not_return_invalid_attributes --- tests/Unit/Views/Columns/ViewComponentColumnTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Unit/Views/Columns/ViewComponentColumnTest.php b/tests/Unit/Views/Columns/ViewComponentColumnTest.php index eb6759b16..2edcf4c53 100644 --- a/tests/Unit/Views/Columns/ViewComponentColumnTest.php +++ b/tests/Unit/Views/Columns/ViewComponentColumnTest.php @@ -89,7 +89,7 @@ public function test_can_not_return_invalid_attributes(): void { $this->expectException(DataTableConfigurationException::class); - $column = ViewComponentColumn::make('Total Users')->attributes(fn ($value, $row, Column $column) => 'test')->getContents(Pet::find(1)); + $column = ViewComponentColumn::make('Total Users')->component('test-component')->attributes(fn ($value, $row, Column $column) => 'test')->getContents(Pet::find(1)); } }