Code Duplication    Length = 7-7 lines in 2 locations

tests/OpenOrchestra/Tests/Functional/ModelBundle/Repository/NodeRepositoryTest.php 1 location

@@ 497-503 (lines=7) @@
494
    /**
495
     * Test has statused element
496
     */
497
    public function testHasStatusedElement()
498
    {
499
        $statusRepository = static::$kernel->getContainer()->get('open_orchestra_model.repository.status');
500
        $status = $statusRepository->findOneByInitial();
501
502
        $this->assertTrue($this->repository->hasStatusedElement($status));
503
    }
504
505
    /**
506
     * @return array

tests/OpenOrchestra/Tests/Functional/ModelBundle/Repository/ContentRepositoryTest.php 1 location

@@ 604-610 (lines=7) @@
601
    /**
602
     * Test has statused element
603
     */
604
    public function testHasStatusedElement()
605
    {
606
        $statusRepository = static::$kernel->getContainer()->get('open_orchestra_model.repository.status');
607
        $status = $statusRepository->findOneByInitial();
608
609
        $this->assertTrue($this->repository->hasStatusedElement($status));
610
    }
611
612
    /**
613
     * Test findAllPublishedByContentId