ソースを参照

Fixing association type for testBelongsToEager

Patrick Conroy 11 年 前
コミット
b8bc62f1bd
1 ファイル変更1 行追加1 行削除
  1. 1 1
      tests/TestCase/ORM/CompositeKeysTest.php

+ 1 - 1
tests/TestCase/ORM/CompositeKeysTest.php

@@ -256,7 +256,7 @@ class CompositeKeyTest extends TestCase
      */
     public function testBelongsToEager($strategy)
     {
-        $assoc = new HasOne('Test');
+        $assoc = new BelongsTo('Test');
         if (!$assoc->validStrategy($strategy)) {
             return;
         }