Uploaded image for project: 'PHP ORMs'
  1. PHP ORMs
  2. PHPORM-152

BuilderTest broken by Laravel 11 upgrade: "whereBetween CarbonPeriod"

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • laravel-4.2.0
    • Affects Version/s: None
    • Component/s: Laravel
    • None
    • PHP Drivers

      1) MongoDB\Laravel\Tests\Query\BuilderTest::testMql with data set "whereBetween CarbonPeriod" ([[[[MongoDB\BSON\UTCDateTime Object (...), MongoDB\BSON\UTCDateTime Object (...)]], []]], Closure Object (...))
      array (
        'find' => 
        array (
          0 => 
          array (
            'created_at' => 
            array (
              '$gte' => 
              \MongoDB\BSON\UTCDateTime::__set_state(array(
                 'milliseconds' => '1708437386881',
              )),
              '$lte' => 
              \MongoDB\BSON\UTCDateTime::__set_state(array(
                 'milliseconds' => '1710942986881',
              )),
            ),
          ),
          1 => 
          array (
            'typeMap' => 
            array (
              'root' => 'array',
              'document' => 'array',
            ),
          ),
        ),
      )
      Failed asserting that two arrays are equal.
      --- Expected
      +++ Actual
      @@ @@
               0 => Array (
                   'created_at' => Array (
                       '$gte' => MongoDB\BSON\UTCDateTime Object (
      -                    'milliseconds' => '946684800000'
      +                    'milliseconds' => '1708437386881'
                       )
                       '$lte' => MongoDB\BSON\UTCDateTime Object (
      -                    'milliseconds' => '1708437386882'
      +                    'milliseconds' => '1710942986881'
                       )
                   )
               )/Users/jerome/Develop/laravel-mongodb/tests/Query/BuilderTest.php:49

            Assignee:
            jerome.tamarelle@mongodb.com Jérôme Tamarelle
            Reporter:
            jerome.tamarelle@mongodb.com Jérôme Tamarelle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: