diff --git a/tests/Query/BuilderTest.php b/tests/Query/BuilderTest.php index 8f62583ce..6df0b1a42 100644 --- a/tests/Query/BuilderTest.php +++ b/tests/Query/BuilderTest.php @@ -564,7 +564,12 @@ function (Builder $builder) { yield 'whereBetween CarbonPeriod' => [ [ 'find' => [ - ['created_at' => ['$gte' => new UTCDateTime($period->start), '$lte' => new UTCDateTime($period->end)]], + [ + 'created_at' => [ + '$gte' => new UTCDateTime($period->getStartDate()), + '$lte' => new UTCDateTime($period->getEndDate()), + ], + ], [], // options ], ],