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()); }