From 4c83357bc97fb8b38fc75904d246d0ad2b20d7dc Mon Sep 17 00:00:00 2001 From: drews Date: Sun, 9 Jun 2019 21:53:57 +0500 Subject: [PATCH] add test for member_of comparison --- tests/Doctrine/Tests/ORM/Query/QueryExpressionVisitorTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/Doctrine/Tests/ORM/Query/QueryExpressionVisitorTest.php b/tests/Doctrine/Tests/ORM/Query/QueryExpressionVisitorTest.php index 0e306ab06e..27dce7d6d9 100644 --- a/tests/Doctrine/Tests/ORM/Query/QueryExpressionVisitorTest.php +++ b/tests/Doctrine/Tests/ORM/Query/QueryExpressionVisitorTest.php @@ -67,6 +67,7 @@ public function comparisonData() [$cb->notIn('field', ['value']), $qb->notIn('o.field', ':field'), new Parameter('field', ['value'])], [$cb->contains('field', 'value'), $qb->like('o.field', ':field'), new Parameter('field', '%value%')], + [$cb->memberOf(':field', 'o.field'), $qb->isMemberOf(':field', 'o.field')], [$cb->startsWith('field', 'value'), $qb->like('o.field', ':field'), new Parameter('field', 'value%')], [$cb->endsWith('field', 'value'), $qb->like('o.field', ':field'), new Parameter('field', '%value')],