Code Duplication    Length = 8-8 lines in 3 locations

src/OroCRM/Bundle/MagentoBundle/Tests/Functional/Fixture/CopyCustomerAddressToContact/LoadMagentoChannel.php 1 location

@@ 367-374 (lines=8) @@
364
    /**
365
     * @return User
366
     */
367
    protected function getUser()
368
    {
369
        if (!$this->user) {
370
            $this->user = $this->em->getRepository('OroUserBundle:User')->findOneBy(['username' => 'admin']);
371
        }
372
373
        return $this->user;
374
    }
375
    /**
376
     * @return LoadMagentoChannel
377
     */

src/OroCRM/Bundle/MagentoBundle/Tests/Functional/Fixture/ResyncMagentoCustomerAddresses/LoadMagentoChannel.php 1 location

@@ 432-439 (lines=8) @@
429
    /**
430
     * @return User
431
     */
432
    protected function getUser()
433
    {
434
        if (!$this->user) {
435
            $this->user = $this->em->getRepository('OroUserBundle:User')->findOneBy(['username' => 'admin']);
436
        }
437
438
        return $this->user;
439
    }
440
441
    /**
442
     * @return LoadMagentoChannel

src/OroCRM/Bundle/SalesBundle/Tests/Functional/Fixture/LoadSalesBundleFixtures.php 1 location

@@ 243-250 (lines=8) @@
240
    /**
241
     * @return User
242
     */
243
    protected function getUser()
244
    {
245
        if (empty($this->user)) {
246
            $this->user = $this->em->getRepository('OroUserBundle:User')->findOneBy(['username' => 'admin']);
247
        }
248
249
        return $this->user;
250
    }
251
252
    /**
253
     * @return Address