Skip to content

Commit

Permalink
remove ->all()
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Tamási committed Aug 22, 2016
1 parent 6aa6387 commit a7573be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/TestCase/ORM/Association/HasManyTest.php
Expand Up @@ -680,7 +680,7 @@ public function testUnlinkWithoutContain()
]);

$entity = $this->author->get(1);
$entities = $this->article->find()->where(['Articles.author_id' => $entity->id])->all();
$entities = $this->article->find()->where(['Articles.author_id' => $entity->id]); // Without ->all()
$this->assertCount(2, $entities);

$assoc->unlink($entity, $entities);
Expand Down

0 comments on commit a7573be

Please sign in to comment.