Browse Source

Fix association casing.

Mark Story 10 years ago
parent
commit
abaffcf57e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tests/TestCase/ORM/Association/HasManyTest.php

+ 2 - 2
tests/TestCase/ORM/Association/HasManyTest.php

@@ -340,7 +340,7 @@ class HasManyTest extends TestCase
             ->will($this->returnValue($query));
 
         $queryBuilder = function ($query) {
-            return $query->select(['author_id'])->join('comments')->where(['Comments.id' => 1]);
+            return $query->select(['author_id'])->join('comments')->where(['comments.id' => 1]);
         };
         $association->eagerLoader(compact('keys', 'query', 'queryBuilder'));
 
@@ -361,7 +361,7 @@ class HasManyTest extends TestCase
 
         $expected = new QueryExpression([
                 'Articles.author_id IN' => $keys,
-                'Comments.id' => 1,
+                'comments.id' => 1,
             ],
             $query->typeMap()
         );