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)); } }