| @@ 1206-1220 (lines=15) @@ | ||
| 1203 | ); |
|
| 1204 | } |
|
| 1205 | ||
| 1206 | public function testLanguageCodeFilterWithAlwaysAvailable() |
|
| 1207 | { |
|
| 1208 | $this->assertSearchResults( |
|
| 1209 | [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 | [ |
|
| 1213 | 'filter' => new Criterion\LanguageCode('eng-GB', true), |
|
| 1214 | 'limit' => 20, |
|
| 1215 | 'sortClauses' => [new SortClause\ContentId()], |
|
| 1216 | ] |
|
| 1217 | ) |
|
| 1218 | ) |
|
| 1219 | ); |
|
| 1220 | } |
|
| 1221 | ||
| 1222 | public function testVisibilityFilter() |
|
| 1223 | { |
|
| @@ 1109-1123 (lines=15) @@ | ||
| 1106 | ); |
|
| 1107 | } |
|
| 1108 | ||
| 1109 | public function testLanguageCodeFilterWithAlwaysAvailable() |
|
| 1110 | { |
|
| 1111 | $this->assertSearchResults( |
|
| 1112 | [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 | [ |
|
| 1116 | 'filter' => new Criterion\LanguageCode('eng-GB', true), |
|
| 1117 | 'limit' => 20, |
|
| 1118 | 'sortClauses' => [new SortClause\ContentId()], |
|
| 1119 | ] |
|
| 1120 | ) |
|
| 1121 | ) |
|
| 1122 | ); |
|
| 1123 | } |
|
| 1124 | ||
| 1125 | public function testMatchAllFilter() |
|
| 1126 | { |
|