From 769871659e927595045535f58d39ab60fbb9f68e Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Wed, 25 Sep 2024 06:52:46 +0800 Subject: [PATCH] wip Signed-off-by: Mior Muhammad Zaki --- tests/Feature/TableTest.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/Feature/TableTest.php b/tests/Feature/TableTest.php index 121c6a98..55d6d8b9 100644 --- a/tests/Feature/TableTest.php +++ b/tests/Feature/TableTest.php @@ -40,8 +40,8 @@ ], ], 'collections' => [ - collect(['Name', 'Twitter']), - collect([ + fn () => collect(['Name', 'Twitter']), + fn () => collect([ ['Taylor Otwell', '@taylorotwell'], ['Dries Vints', '@driesvints'], ['James Brooks', '@jbrooksuk'], @@ -53,7 +53,7 @@ ['Joe Dixon', '@_joedixon'], ]), ], -]); +])->skip(! depends_on_collection()); it('renders a table without headers', function ($rows) { Prompt::fake(); @@ -88,7 +88,7 @@ ], ], 'collections' => [ - collect([ + fn () => collect([ ['Taylor Otwell', '@taylorotwell'], ['Dries Vints', '@driesvints'], ['James Brooks', '@jbrooksuk'], @@ -100,4 +100,4 @@ ['Joe Dixon', '@_joedixon'], ]), ], -]); +])->skip(! depends_on_collection());