Code Duplication    Length = 15-15 lines in 2 locations

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

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

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

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