Code Duplication    Length = 21-21 lines in 2 locations

eZ/Publish/Core/MVC/Symfony/Templating/Tests/Twig/Extension/FieldRenderingExtensionIntegrationTest.php 1 location

@@ 163-183 (lines=21) @@
160
        return 'templates/' . $tpl;
161
    }
162
163
    private function getConfigResolverMock()
164
    {
165
        $mock = $this->createMock(ConfigResolverInterface::class);
166
        // Signature: ConfigResolverInterface->getParameter( $paramName, $namespace = null, $scope = null )
167
        $mock->expects($this->any())
168
            ->method('getParameter')
169
            ->will(
170
                $this->returnValueMap(
171
                    [
172
                        [
173
                            'languages',
174
                            null,
175
                            null,
176
                            ['fre-FR', 'eng-US'],
177
                        ],
178
                    ]
179
                )
180
            );
181
182
        return $mock;
183
    }
184
}
185

eZ/Publish/Core/MVC/Symfony/Templating/Tests/Twig/Extension/ContentExtensionTest.php 1 location

@@ 124-144 (lines=21) @@
121
        return $content;
122
    }
123
124
    private function getConfigResolverMock()
125
    {
126
        $mock = $this->createMock(ConfigResolverInterface::class);
127
        // Signature: ConfigResolverInterface->getParameter( $paramName, $namespace = null, $scope = null )
128
        $mock->expects($this->any())
129
            ->method('getParameter')
130
            ->will(
131
                $this->returnValueMap(
132
                    [
133
                        [
134
                            'languages',
135
                            null,
136
                            null,
137
                            ['fre-FR', 'eng-US'],
138
                        ],
139
                    ]
140
                )
141
            );
142
143
        return $mock;
144
    }
145
146
    protected function getField($isEmpty)
147
    {