Skip to content

Commit

Permalink
Adding missing doc block
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Apr 4, 2014
1 parent d657371 commit 513700c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/TestCase/ORM/QueryRegressionTest.php
Expand Up @@ -66,6 +66,14 @@ public function testEagerLoadingFromEmptyResults() {
$this->assertEmpty($results);
}

/**
* Tests that duplicate aliases in contain() can be used, even when they would
* naturally be attached to the query instead of eagerly loaded. What should
* happen here is that One of the duplicates will be changed to be loaded using
* an extra query, but yielding the same results
*
* @return void
*/
public function testDuplicateAttachableAliases() {
TableRegistry::get('Stuff', ['table' => 'tags']);
TableRegistry::get('Things', ['table' => 'articles_tags']);
Expand Down

0 comments on commit 513700c

Please sign in to comment.