Skip to content

Commit

Permalink
Check the association table
Browse files Browse the repository at this point in the history
  • Loading branch information
AD7six committed Feb 16, 2015
1 parent ce81f62 commit 93106cd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/TestCase/ORM/TableTest.php
Expand Up @@ -568,6 +568,9 @@ public function testMultipleAssociationsSameClass()
$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());

Expand Down

0 comments on commit 93106cd

Please sign in to comment.