Code Duplication    Length = 15-15 lines in 2 locations

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

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

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

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