Skip to content

Commit

Permalink
Made some tests more obvious
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Jul 1, 2015
1 parent dce367d commit 26d31de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/TestCase/ORM/CompositeKeysTest.php
Expand Up @@ -688,6 +688,7 @@ public function testLoadInto()
$author = $table->get([1, 1]);
$result = $table->loadInto($author, ['SiteArticles']);
$this->assertSame($author, $result);
$this->assertNotEmpty($result->site_articles);

$expected = $table->get([1, 1], ['contain' => ['SiteArticles']]);
$this->assertEquals($expected, $result);
Expand All @@ -709,6 +710,7 @@ public function testLoadIntoWithBelongsTo()
$author = $table->get([2, 2]);
$result = $table->loadInto($author, ['SiteAuthors']);
$this->assertSame($author, $result);
$this->assertNotEmpty($result->site_author);

$expected = $table->get([2, 2], ['contain' => ['SiteAuthors']]);
$this->assertEquals($expected, $result);
Expand Down

0 comments on commit 26d31de

Please sign in to comment.