Code Duplication    Length = 11-11 lines in 2 locations

Tests/Entity/TerminalRepositoryTest.php 2 locations

@@ 36-46 (lines=11) @@
33
        $this->assertSame($obj, $terminalRepository->findTerminalByTitle('title'));
34
    }
35
36
    public function testFindTerminalByTitleWithFetch()
37
    {
38
        $terminalRepository = $this->getTerminalRepository();
39
40
        $obj = new Terminal();
41
        $terminalRepository
42
            ->method('findOneBy')
43
            ->will($this->onConsecutiveCalls(null, $obj));
44
45
        $this->assertSame($obj, $terminalRepository->findTerminalByTitle('title', true));
46
    }
47
48
    public function testFindTerminalBySlug()
49
    {
@@ 60-70 (lines=11) @@
57
        $this->assertSame($obj, $terminalRepository->findTerminalBySlug('slug'));
58
    }
59
60
    public function testFindTerminalBySlugWithFetch()
61
    {
62
        $terminalRepository = $this->getTerminalRepository();
63
64
        $obj = new Terminal();
65
        $terminalRepository
66
            ->method('findOneBy')
67
            ->will($this->onConsecutiveCalls(null, $obj));
68
69
        $this->assertSame($obj, $terminalRepository->findTerminalBySlug('slug', true));
70
    }
71
72
    /**
73
     * @return TerminalRepository|\PHPUnit_Framework_MockObject_MockObject