Code Duplication    Length = 7-7 lines in 2 locations

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

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

src/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