Code Duplication    Length = 11-11 lines in 2 locations

Tests/Entity/TerminalRepositoryTest.php 2 locations

@@ 24-34 (lines=11) @@
21
        $this->assertSame(null, $terminalRepository->findTerminalBySlug('slug'));
22
    }
23
24
    public function testFindTerminalByTitle()
25
    {
26
        $terminalRepository = $this->getTerminalRepository();
27
28
        $obj = new Terminal();
29
        $terminalRepository
30
            ->method('findOneBy')
31
            ->willReturn($obj);
32
33
        $this->assertSame($obj, $terminalRepository->findTerminalByTitle('title'));
34
    }
35
36
    public function testFindTerminalByTitleWithFetch()
37
    {
@@ 48-58 (lines=11) @@
45
        $this->assertSame($obj, $terminalRepository->findTerminalByTitle('title', true));
46
    }
47
48
    public function testFindTerminalBySlug()
49
    {
50
        $terminalRepository = $this->getTerminalRepository();
51
52
        $obj = new Terminal();
53
        $terminalRepository
54
            ->method('findOneBy')
55
            ->willReturn($obj);
56
57
        $this->assertSame($obj, $terminalRepository->findTerminalBySlug('slug'));
58
    }
59
60
    public function testFindTerminalBySlugWithFetch()
61
    {