Skip to content

Commit

Permalink
Fix typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Dec 19, 2014
1 parent 932d832 commit dab84c6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/TestCase/ORM/QueryTest.php
Expand Up @@ -2287,21 +2287,20 @@ public function testMatchingWithContain() {

/**
* Tests that it is possible to call matching and contain on the same
* association with only onle level of depth.
* association with only one level of depth.
*
* @return void
*/
public function testNotSoFarMatchingWithContainOnTheSameAssociation() {
$table = TableRegistry::get('articles');
$table->belongsToMany('tags');

$result = $table
->find()
$result = $table->find()
->matching('tags', function ($q) {
return $q->where(['tags.id' => 2]);
})
->contain('tags')
->first();
->contain('tags')
->first();

$this->assertEquals(1, $result->id);
$this->assertCount(2, $result->tags);
Expand Down

0 comments on commit dab84c6

Please sign in to comment.