Code Duplication    Length = 10-12 lines in 3 locations

src/Kunstmaan/AdminBundle/Tests/Helper/DomainConfigurationTest.php 2 locations

@@ 125-136 (lines=12) @@
122
        return $request;
123
    }
124
125
    private function getSingleLanguageDomainConfiguration()
126
    {
127
        $map = array(
128
            array('multilanguage', false),
129
            array('defaultlocale', 'en'),
130
            array('requiredlocales', 'en'),
131
        );
132
133
        $object = new DomainConfiguration($this->getContainer($map));
134
135
        return $object;
136
    }
137
138
    private function getMultiLanguageDomainConfiguration()
139
    {
@@ 138-149 (lines=12) @@
135
        return $object;
136
    }
137
138
    private function getMultiLanguageDomainConfiguration()
139
    {
140
        $map = array(
141
            array('multilanguage', true),
142
            array('defaultlocale', 'nl'),
143
            array('requiredlocales', 'nl|fr|en'),
144
        );
145
146
        $object = new DomainConfiguration($this->getContainer($map));
147
148
        return $object;
149
    }
150
}
151

src/Kunstmaan/AdminListBundle/Tests/Helper/DomainConfigurationTest.php 1 location

@@ 24-33 (lines=10) @@
21
     * Sets up the fixture, for example, opens a network connection.
22
     * This method is called before a test is executed.
23
     */
24
    public function setUp()
25
    {
26
        $map = array(
27
            array('multilanguage', true),
28
            array('defaultlocale', 'nl'),
29
            array('requiredlocales', 'nl|fr|en'),
30
        );
31
32
        $this->object = new DomainConfiguration($this->getContainer($map));
33
    }
34
35
    public function testGetSet()
36
    {