Code Duplication    Length = 9-10 lines in 2 locations

src/Kunstmaan/FormBundle/Tests/unit/AdminList/FormSubmissionAdminListConfiguratorTest.php 1 location

@@ 30-38 (lines=9) @@
27
     * Sets up the fixture, for example, opens a network connection.
28
     * This method is called before a test is executed.
29
     */
30
    protected function setUp()
31
    {
32
        $em = $this->getMockedEntityManager();
33
        $node = new Node();
34
        $node->setId(666);
35
        $nt = new NodeTranslation();
36
        $nt->setNode($node);
37
        $this->object = new FormSubmissionAdminListConfigurator($em, $nt);
38
    }
39
40
    /**
41
     *

src/Kunstmaan/FormBundle/Tests/unit/AdminList/FormSubmissionExportListConfiguratorTest.php 1 location

@@ 40-49 (lines=10) @@
37
     * Sets up the fixture, for example, opens a network connection.
38
     * This method is called before a test is executed.
39
     */
40
    protected function setUp()
41
    {
42
        $em = $this->getMockedEntityManager();
43
        $node = new Node();
44
        $node->setId(666);
45
        $nt = new NodeTranslation();
46
        $nt->setNode($node);
47
        $translator = new Translator('nl');
48
        $this->object = new FormSubmissionExportListConfigurator($em, $nt, $translator);
49
    }
50
51
    /**
52
     * @return \Doctrine\ORM\EntityManager