Code Duplication    Length = 7-9 lines in 3 locations

www/src/AdminBundle/Tests/Controller/LicenseeControllerTest.php 1 location

@@ 95-103 (lines=9) @@
92
    /**
93
     * @return \PHPUnit_Framework_MockObject_MockObject|LicenseeRepository
94
     */
95
    private function createLicenseeRepositoryMock(): LicenseeRepository
96
    {
97
        $repository = $this->getMockBuilder(LicenseeRepository::class)
98
            ->disableOriginalConstructor()
99
            ->setMethods(['findAll', 'save', 'find', 'findBy', 'findOneBy', 'getClassName', 'findOneByName'])
100
            ->getMock();
101
102
        return $repository;
103
    }
104
}
105

www/src/AdminBundle/Tests/Controller/TextnodeControllerTest.php 1 location

@@ 144-152 (lines=9) @@
141
    /**
142
     * @return \PHPUnit_Framework_MockObject_MockObject|LicenseeRepositoryInterface
143
     */
144
    private function createLicenseeRepositoryMock(): LicenseeRepositoryInterface
145
    {
146
        $repository = $this->getMockBuilder(LicenseeRepositoryInterface::class)
147
            ->disableOriginalConstructor()
148
            ->setMethods(['findAll', 'save', 'find', 'findBy', 'findOneBy', 'getClassName', 'findOneByName'])
149
            ->getMock();
150
151
        return $repository;
152
    }
153
}
154

www/src/AdminBundle/Tests/Controller/UserControllerTest.php 1 location

@@ 140-146 (lines=7) @@
137
    /**
138
     * @return UserRepositoryInterface|\PHPUnit_Framework_MockObject_MockObject
139
     */
140
    private function createUserRepositoryMock(): UserRepositoryInterface
141
    {
142
        return $this->getMockBuilder(UserRepositoryInterface::class)
143
            ->disableOriginalConstructor()
144
            ->setMethods(['createQueryBuilder', 'find', 'findByEmail', 'findAll', 'save', 'findBy', 'findOneBy', 'getClassName'])
145
            ->getMock();
146
    }
147
148
    /**
149
     * @return \Swift_Mailer|\PHPUnit_Framework_MockObject_MockObject