diff --git a/tests/Unit/Views/Columns/ViewComponentColumnTest.php b/tests/Unit/Views/Columns/ViewComponentColumnTest.php index dd96a25c7..5d3055cbd 100644 --- a/tests/Unit/Views/Columns/ViewComponentColumnTest.php +++ b/tests/Unit/Views/Columns/ViewComponentColumnTest.php @@ -77,4 +77,11 @@ public function test_can_use_custom_component(): void $this->assertSame('
2420
', $contents); }*/ + + public function test_can_not_user_as_label(): void + { + $this->expectException(DataTableConfigurationException::class); + + $column = ViewComponentColumn::make('Total Users')->label(fn () => 'My Label')->getContents(Pet::find(1)); + } }