Skip to content

Commit

Permalink
Make assertDatabase "data" optional
Browse files Browse the repository at this point in the history
  • Loading branch information
christophrumpel committed Aug 22, 2024
1 parent 53df511 commit 5477f92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand All @@ -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());
}
Expand Down

0 comments on commit 5477f92

Please sign in to comment.