Code Duplication    Length = 9-11 lines in 3 locations

tests/Doctrine/Tests/ORM/Functional/EntityRepositoryTest.php 3 locations

@@ 518-526 (lines=9) @@
515
        $this->assertEquals(['romanb'], $params);
516
    }
517
518
    public function testIsNullCriteria()
519
    {
520
        $this->loadFixture();
521
522
        $repos = $this->_em->getRepository(CmsUser::class);
523
524
        $users = $repos->findBy(['status' => null]);
525
        $this->assertEquals(1, count($users));
526
    }
527
528
    /**
529
     * @group DDC-1094
@@ 721-729 (lines=9) @@
718
    /**
719
     * @group DDC-1637
720
     */
721
    public function testMatchingEmptyCriteria()
722
    {
723
        $this->loadFixture();
724
725
        $repository = $this->_em->getRepository(CmsUser::class);
726
        $users = $repository->matching(new Criteria());
727
728
        $this->assertEquals(4, count($users));
729
    }
730
731
    /**
732
     * @group DDC-1637
@@ 749-759 (lines=11) @@
746
    /**
747
     * @group DDC-1637
748
     */
749
    public function testMatchingCriteriaNeqComparison()
750
    {
751
        $this->loadFixture();
752
753
        $repository = $this->_em->getRepository(CmsUser::class);
754
        $users = $repository->matching(new Criteria(
755
            Criteria::expr()->neq('username', 'beberlei')
756
        ));
757
758
        $this->assertEquals(3, count($users));
759
    }
760
761
    /**
762
     * @group DDC-1637