Code Duplication    Length = 11-11 lines in 2 locations

tests/Repositories/RotaRepositoryTest.php 2 locations

@@ 90-100 (lines=11) @@
87
        $this->assertEquals(0, $filteredResultByDeletedAt->count());
88
    }
89
90
    public function testFindOneBy()
91
    {
92
        $entity = $this->getFlushedMockObject();
93
94
        $result = $this->getRepository()
95
                       ->findOneBy(['id' => $entity->getId()]);
96
97
        $this->assertNotNull($result);
98
        $this->assertInstanceOf($this->getRepository()->getClassName(), $result);
99
        $this->assertEquals($entity->getId(), $result->getId());
100
    }
101
102
    public function testFind()
103
    {
@@ 102-112 (lines=11) @@
99
        $this->assertEquals($entity->getId(), $result->getId());
100
    }
101
102
    public function testFind()
103
    {
104
        $entity = $this->getFlushedMockObject();
105
106
        $result = $this->getRepository()
107
                       ->find($entity->getId());
108
109
        $this->assertNotNull($result);
110
        $this->assertInstanceOf($this->getRepository()->getClassName(), $result);
111
        $this->assertEquals($entity->getId(), $result->getId());
112
    }
113
114
    public function testFindAllRemoved()
115
    {