Browse Source

Fix condition to work better on sqlserver.

Mark Story 8 years ago
parent
commit
4278aac5d1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/TestCase/Database/QueryTest.php

+ 1 - 1
tests/TestCase/Database/QueryTest.php

@@ -4589,7 +4589,7 @@ class QueryTest extends TestCase
             ->select(['a' => 'id'])
             ->from('profiles')
             ->setSelectTypeMap($typeMap)
-            ->where(['id' => 1])
+            ->where(['user_id' => 1])
             ->execute()
             ->fetchAll('assoc');
         $this->assertSame([['user_id' => 1, 'is_active' => false, 'a' => 1]], $results);