Code Duplication    Length = 10-10 lines in 2 locations

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

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

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

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