Code Duplication    Length = 10-10 lines in 2 locations

src/Kunstmaan/NodeBundle/Tests/unit/Router/SlugRouterTest.php 1 location

@@ 126-135 (lines=10) @@
123
        return $request;
124
    }
125
126
    private function getEntityManager($nodeTranslation = null)
127
    {
128
        $em = $this->createMock('Doctrine\ORM\EntityManagerInterface');
129
        $em
130
            ->method('getRepository')
131
            ->with($this->equalTo('KunstmaanNodeBundle:NodeTranslation'))
132
            ->willReturn($this->getNodeTranslationRepository($nodeTranslation));
133
134
        return $em;
135
    }
136
137
    private function getNodeTranslationRepository($nodeTranslation = null)
138
    {

src/Kunstmaan/MultiDomainBundle/Tests/unit/Router/DomainBasedLocaleRouterTest.php 1 location

@@ 246-255 (lines=10) @@
243
        return $request;
244
    }
245
246
    private function getEntityManager($nodeTranslation = null)
247
    {
248
        $em = $this->createMock('Doctrine\ORM\EntityManagerInterface');
249
        $em
250
            ->method('getRepository')
251
            ->with($this->equalTo('KunstmaanNodeBundle:NodeTranslation'))
252
            ->willReturn($this->getNodeTranslationRepository($nodeTranslation));
253
254
        return $em;
255
    }
256
257
    private function getNodeTranslationRepository($nodeTranslation = null)
258
    {