Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4c83357

Browse files
committed
add test for member_of comparison
1 parent 710936b commit 4c83357

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/Doctrine/Tests/ORM/Query/QueryExpressionVisitorTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ public function comparisonData()
6767
[$cb->notIn('field', ['value']), $qb->notIn('o.field', ':field'), new Parameter('field', ['value'])],
6868

6969
[$cb->contains('field', 'value'), $qb->like('o.field', ':field'), new Parameter('field', '%value%')],
70+
[$cb->memberOf(':field', 'o.field'), $qb->isMemberOf(':field', 'o.field')],
7071

7172
[$cb->startsWith('field', 'value'), $qb->like('o.field', ':field'), new Parameter('field', 'value%')],
7273
[$cb->endsWith('field', 'value'), $qb->like('o.field', ':field'), new Parameter('field', '%value')],

0 commit comments

Comments
 (0)