Skip to content

Commit

Permalink
Merge pull request #56 from christophrumpel/patch-1
Browse files Browse the repository at this point in the history
Fix assertDatabase "data" now optional
  • Loading branch information
nunomaduro authored Jan 24, 2025
2 parents 53df511 + 5477f92 commit c676c48
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 c676c48

Please sign in to comment.