Skip to content

Commit

Permalink
PHPORM-152 Fix tests for Carbon 3 (#2733)
Browse files Browse the repository at this point in the history
  • Loading branch information
GromNaN authored Feb 21, 2024
1 parent 26a6824 commit decbd99
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/Query/BuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
],
],
Expand Down

0 comments on commit decbd99

Please sign in to comment.