From 5477f9258919e43c6d5396ef73f92f2387229a88 Mon Sep 17 00:00:00 2001 From: Christoph Rumpel Date: Thu, 22 Aug 2024 16:25:55 +0200 Subject: [PATCH] Make assertDatabase "data" optional --- src/Database.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Database.php b/src/Database.php index 3662946..4913c37 100644 --- a/src/Database.php +++ b/src/Database.php @@ -13,7 +13,7 @@ * * @return TestCase */ -function assertDatabaseHas(string $table, array $data, ?string $connection = null) +function assertDatabaseHas(string $table, array $data = [], ?string $connection = null) { return test()->assertDatabaseHas(...func_get_args()); } @@ -23,7 +23,7 @@ function assertDatabaseHas(string $table, array $data, ?string $connection = nul * * @return TestCase */ -function assertDatabaseMissing(string $table, array $data, ?string $connection = null) +function assertDatabaseMissing(string $table, array $data = [], ?string $connection = null) { return test()->assertDatabaseMissing(...func_get_args()); }