Skip to content

Commit

Permalink
Forcing the Articles to contain Tags for test passing
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Conroy committed Aug 26, 2014
1 parent dfe379d commit d1d63a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_app/TestApp/Model/Table/ArticlesTable.php
Expand Up @@ -61,7 +61,7 @@ public function doSomethingElse() {
*/
public function findCustomTags(Query $query, array $options = []) {
if (isset($options['tags']) && is_array($options['tags'])) {
return $query->matching('Tags', function($q) use ($options) {
return $query->contain(['Tags'])->matching('Tags', function($q) use ($options) {
return $q->where(['Tags.id IN' => $options['tags']]);
});
}
Expand Down

0 comments on commit d1d63a8

Please sign in to comment.