Skip to content

Commit

Permalink
improves the test for BelongsToMany Associations to verify if the cor…
Browse files Browse the repository at this point in the history
…rect entity was found
  • Loading branch information
TheFRedFox committed May 24, 2016
1 parent c8b6000 commit ffbea23
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/TestCase/ORM/Association/BelongsToManyTest.php
Expand Up @@ -1022,6 +1022,7 @@ public function testAssociationProxyFindWithConditions()
$query = $table->Tags->find();
$result = $query->toArray();
$this->assertCount(1, $result);
$this->assertEquals(1, $result[0]->id);
}

/**
Expand All @@ -1045,6 +1046,7 @@ public function testAssociationProxyFindWithComplexConditions()
$query = $table->Tags->find();
$result = $query->toArray();
$this->assertCount(1, $result);
$this->assertEquals(1, $result[0]->id);
}

/**
Expand Down

0 comments on commit ffbea23

Please sign in to comment.