Browse Source

Check the association table

AD7six 11 years ago
parent
commit
93106cde56
1 changed files with 3 additions and 0 deletions
  1. 3 0
      tests/TestCase/ORM/TableTest.php

+ 3 - 0
tests/TestCase/ORM/TableTest.php

@@ -568,6 +568,9 @@ class TableTest extends TestCase
         $Comments->hasMany('Children', $options);
         $Comments->belongsTo('Parent', $options);
 
+        $this->assertSame('comments', $Comments->Children->target()->table());
+        $this->assertSame('comments', $Comments->Parent->target()->table());
+
         $this->assertSame('Children', $Comments->Children->alias());
         $this->assertSame('Children', $Comments->Children->target()->alias());