Skip to content

Commit c1ee0f2

Browse files
committed
add body_celltags override test
Signed-off-by: Lloric Mayuga Garcia <[email protected]>
1 parent d5c637d commit c1ee0f2

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/Units/TableTest.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,3 +274,18 @@
274274
))
275275
->toMatchTextSnapshot();
276276
});
277+
278+
test('add body_celltags override', function (): void {
279+
expect(LaravelHtmlTableFacade::generate(
280+
header: ['Header'],
281+
data: [
282+
[
283+
[
284+
'data' => 'row data',
285+
'body_celltags' => ['open' => '<td id="testid">', 'close' => '</td test close>'],
286+
],
287+
],
288+
],
289+
))
290+
->toMatchTextSnapshot();
291+
});

0 commit comments

Comments
 (0)