Browse Source

Fix string to integer conversion in array comparison

othercorey 4 years ago
parent
commit
441c7a5671
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tests/TestCase/Database/ConnectionTest.php

+ 2 - 2
tests/TestCase/Database/ConnectionTest.php

@@ -321,14 +321,14 @@ class ConnectionTest extends TestCase
 
         $collection = new Collection($statement);
         $result = $collection->extract('id')->toArray();
-        $this->assertSame(['1', '2'], $result);
+        $this->assertSame([1, 2], $result);
 
         // Check iteration after extraction
         $result = [];
         foreach ($collection as $v) {
             $result[] = $v['id'];
         }
-        $this->assertSame(['1', '2'], $result);
+        $this->assertSame([1, 2], $result);
     }
 
     /**