Code Duplication    Length = 10-17 lines in 2 locations

eZ/Publish/Core/Persistence/Legacy/Tests/Content/UrlAlias/Gateway/DoctrineDatabaseTest.php 1 location

@@ 299-308 (lines=10) @@
296
     *
297
     * @return array
298
     */
299
    public function providerForTestArchiveUrlAliasesForDeletedTranslations()
300
    {
301
        return [
302
            [314, [2]],
303
            [315, [4]],
304
            [316, [4]],
305
            [317, [2, 8]],
306
            [318, [2, 8]],
307
        ];
308
    }
309
310
    /**
311
     * Test for the cleanupAfterPublish() method.

eZ/Publish/Core/REST/Server/Tests/Output/ValueObjectVisitor/RestExecutedViewTest.php 1 location

@@ 75-91 (lines=17) @@
72
        return $dom;
73
    }
74
75
    public function provideXpathAssertions()
76
    {
77
        return [
78
            ['/View'],
79
            ['/View[@media-type="application/vnd.ez.api.View+xml"]'],
80
            ['/View[@href="/content/views/test_view"]'],
81
            ['/View/identifier'],
82
            ['/View/identifier[text()="test_view"]'],
83
            ['/View/Query'],
84
            ['/View/Query[@media-type="application/vnd.ez.api.Query+xml"]'],
85
            ['/View/Result'],
86
            ['/View/Result[@media-type="application/vnd.ez.api.ViewResult+xml"]'],
87
            ['/View/Result[@href="/content/views/test_view/results"]'],
88
            ['/View/Result/searchHits/searchHit[@score="0.123" and @index="alexandria"]'],
89
            ['/View/Result/searchHits/searchHit[@score="0.234" and @index="waze"]'],
90
        ];
91
    }
92
93
    /**
94
     * @param string $xpath