Code Duplication    Length = 9-10 lines in 2 locations

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

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

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

@@ 37-46 (lines=10) @@
34
     * Sets up the fixture, for example, opens a network connection.
35
     * This method is called before a test is executed.
36
     */
37
    protected function setUp()
38
    {
39
        $em = $this->getMockedEntityManager();
40
        $node = new Node();
41
        $node->setId(666);
42
        $nt = new NodeTranslation();
43
        $nt->setNode($node);
44
        $translator = new Translator('nl');
45
        $this->object = new FormSubmissionExportListConfigurator($em, $nt, $translator);
46
    }
47
48
    /**
49
     * https://gist.github.com/1331789