Code Duplication    Length = 15-15 lines in 2 locations

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

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

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

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