@@ 729-739 (lines=11) @@ | ||
726 | /** |
|
727 | * @group DDC-1637 |
|
728 | */ |
|
729 | public function testMatchingCriteriaInComparison() |
|
730 | { |
|
731 | $this->loadFixture(); |
|
732 | ||
733 | $repository = $this->em->getRepository(CmsUser::class); |
|
734 | $users = $repository->matching(new Criteria( |
|
735 | Criteria::expr()->in('username', ['beberlei', 'gblanco']) |
|
736 | )); |
|
737 | ||
738 | self::assertCount(2, $users); |
|
739 | } |
|
740 | ||
741 | /** |
|
742 | * @group DDC-1637 |
|
@@ 744-754 (lines=11) @@ | ||
741 | /** |
|
742 | * @group DDC-1637 |
|
743 | */ |
|
744 | public function testMatchingCriteriaNotInComparison() |
|
745 | { |
|
746 | $this->loadFixture(); |
|
747 | ||
748 | $repository = $this->em->getRepository(CmsUser::class); |
|
749 | $users = $repository->matching(new Criteria( |
|
750 | Criteria::expr()->notIn('username', ['beberlei', 'gblanco', 'asm89']) |
|
751 | )); |
|
752 | ||
753 | self::assertCount(1, $users); |
|
754 | } |
|
755 | ||
756 | /** |
|
757 | * @group DDC-1637 |