Code Duplication    Length = 9-12 lines in 4 locations

eZ/Bundle/EzPublishCoreBundle/Tests/Routing/DefaultRouterTest.php 1 location

@@ 303-313 (lines=11) @@
300
     *
301
     * @return array
302
     */
303
    public function providerGetContextBySimplifiedRequest()
304
    {
305
        return [
306
            ['/foo/bar'],
307
            ['http://ezpublish.dev/foo/bar'],
308
            ['http://ezpublish.dev:8080/foo/bar'],
309
            ['https://ezpublish.dev/secured'],
310
            ['https://ezpublish.dev:445/secured'],
311
            ['http://ezpublish.dev:8080/foo/root_folder/bar/baz'],
312
        ];
313
    }
314
315
    private function getExpectedRequestContext($uri)
316
    {

eZ/Publish/Core/Persistence/Legacy/Tests/Content/Language/MaskGeneratorTest.php 1 location

@@ 232-240 (lines=9) @@
229
     *
230
     * @return array
231
     */
232
    public function removeAlwaysAvailableFlagProvider()
233
    {
234
        return [
235
            [3, 2],
236
            [7, 6],
237
            [14, 14],
238
            [62, 62],
239
        ];
240
    }
241
242
    /**
243
     * @param int $langMask

eZ/Publish/Core/FieldType/Tests/IntegerValueValidatorTest.php 1 location

@@ 171-182 (lines=12) @@
168
        $this->assertSame([], $validator->getMessage());
169
    }
170
171
    public function providerForValidateOK()
172
    {
173
        return [
174
            [10],
175
            [11],
176
            [12],
177
            [12.5],
178
            [13],
179
            [14],
180
            [15],
181
        ];
182
    }
183
184
    /**
185
     * Tests validating a wrong value.

eZ/Publish/API/Repository/Tests/URLServiceTest.php 1 location

@@ 876-884 (lines=9) @@
873
        $this->assertUsagesSearchResultItems($usagesSearchResults, $expectedContentInfos);
874
    }
875
876
    public function dataProviderForFindUsages()
877
    {
878
        return [
879
            // findUsages($url, 0, -1)
880
            [23, 0, -1, [54], 1],
881
            // findUsages($url, 0, $limit)
882
            [23, 0, 1, [54], 1],
883
        ];
884
    }
885
886
    /**
887
     * Test for URLService::testFindUsages() method.