Code Duplication    Length = 9-10 lines in 2 locations

src/Lumen/Tests/Repositories/BaseRepositoryTest.php 1 location

@@ 34-42 (lines=9) @@
31
        return $this->getFlushedMockObject($except)->toArray();
32
    }
33
34
    public function testFindAll()
35
    {
36
        $entity = $this->getFlushedMockObject();
37
38
        $findAll = $this->getRepository()->findAll()->getResult();
39
40
        $this->assertGreaterThan(0, count($findAll));
41
        $this->assertInstanceOf($this->getRepository()->getEntityName(), $findAll[0]);
42
    }
43
44
    public function testFindBy()
45
    {

src/Lumen/Traits/Tests/Services/ReadTrait.php 1 location

@@ 7-16 (lines=10) @@
4
5
trait ReadTrait
6
{
7
    public function testFindAll()
8
    {
9
        $entity = $this->getRepositoryTest()
10
                       ->getFlushedMockObject();
11
12
        $findAll = $this->getService()->findAll()->getResult();
13
14
        $this->assertGreaterThan(0, count($findAll));
15
        $this->assertInstanceOf($this->getService()->getMainRepository()->getEntityName(), $findAll[0]);
16
    }
17
18
    public function testFind()
19
    {