Code Duplication    Length = 15-15 lines in 2 locations

eZ/Publish/Core/Search/Legacy/Tests/Content/HandlerContentTest.php 1 location

@@ 1206-1220 (lines=15) @@
1203
        );
1204
    }
1205
1206
    public function testLanguageCodeFilterWithAlwaysAvailable()
1207
    {
1208
        $this->assertSearchResults(
1209
            array(4, 10, 11, 12, 13, 14, 41, 42, 45, 49, 50, 51, 56, 57, 65, 68, 70, 74, 76, 80),
1210
            $this->getContentSearchHandler()->findContent(
1211
                new Query(
1212
                    array(
1213
                        'filter' => new Criterion\LanguageCode('eng-GB', true),
1214
                        'limit' => 20,
1215
                        'sortClauses' => array(new SortClause\ContentId()),
1216
                    )
1217
                )
1218
            )
1219
        );
1220
    }
1221
1222
    public function testVisibilityFilter()
1223
    {

eZ/Publish/Core/Search/Legacy/Tests/Content/HandlerLocationTest.php 1 location

@@ 1109-1123 (lines=15) @@
1106
        );
1107
    }
1108
1109
    public function testLanguageCodeFilterWithAlwaysAvailable()
1110
    {
1111
        $this->assertSearchResults(
1112
            array(2, 5, 12, 13, 14, 15, 43, 44, 45, 48, 51, 52, 53, 58, 59, 70, 72, 76, 78, 82),
1113
            $this->getContentSearchHandler()->findLocations(
1114
                new LocationQuery(
1115
                    array(
1116
                        'filter' => new Criterion\LanguageCode('eng-GB', true),
1117
                        'limit' => 20,
1118
                        'sortClauses' => array(new SortClause\ContentId()),
1119
                    )
1120
                )
1121
            )
1122
        );
1123
    }
1124
1125
    public function testMatchAllFilter()
1126
    {