We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59a7967 commit adbf41aCopy full SHA for adbf41a
tests/Unit/Views/Columns/ViewComponentColumnTest.php
@@ -77,4 +77,11 @@ public function test_can_use_custom_component(): void
77
$this->assertSame('<div>2420</div>', $contents);
78
79
}*/
80
+
81
+ public function test_can_not_user_as_label(): void
82
+ {
83
+ $this->expectException(DataTableConfigurationException::class);
84
85
+ $column = ViewComponentColumn::make('Total Users')->label(fn () => 'My Label')->getContents(Pet::find(1));
86
+ }
87
}
0 commit comments