| @@ 766-776 (lines=11) @@ | ||
| 763 | /** |
|
| 764 | * @group DDC-1637 |
|
| 765 | */ |
|
| 766 | public function testMatchingCriteriaInComparison() |
|
| 767 | { |
|
| 768 | $this->loadFixture(); |
|
| 769 | ||
| 770 | $repository = $this->em->getRepository(CmsUser::class); |
|
| 771 | $users = $repository->matching(new Criteria( |
|
| 772 | Criteria::expr()->in('username', ['beberlei', 'gblanco']) |
|
| 773 | )); |
|
| 774 | ||
| 775 | self::assertEquals(2, count($users)); |
|
| 776 | } |
|
| 777 | ||
| 778 | /** |
|
| 779 | * @group DDC-1637 |
|
| @@ 781-791 (lines=11) @@ | ||
| 778 | /** |
|
| 779 | * @group DDC-1637 |
|
| 780 | */ |
|
| 781 | public function testMatchingCriteriaNotInComparison() |
|
| 782 | { |
|
| 783 | $this->loadFixture(); |
|
| 784 | ||
| 785 | $repository = $this->em->getRepository(CmsUser::class); |
|
| 786 | $users = $repository->matching(new Criteria( |
|
| 787 | Criteria::expr()->notIn('username', ['beberlei', 'gblanco', 'asm89']) |
|
| 788 | )); |
|
| 789 | ||
| 790 | self::assertEquals(1, count($users)); |
|
| 791 | } |
|
| 792 | ||
| 793 | /** |
|
| 794 | * @group DDC-1637 |
|