| @@ 1209-1223 (lines=15) @@ | ||
| 1206 | ); |
|
| 1207 | } |
|
| 1208 | ||
| 1209 | public function testLanguageCodeFilterWithAlwaysAvailable() |
|
| 1210 | { |
|
| 1211 | $this->assertSearchResults( |
|
| 1212 | [4, 10, 11, 12, 13, 14, 41, 42, 45, 49, 50, 51, 56, 57, 65, 68, 70, 74, 76, 80], |
|
| 1213 | $this->getContentSearchHandler()->findContent( |
|
| 1214 | new Query( |
|
| 1215 | [ |
|
| 1216 | 'filter' => new Criterion\LanguageCode('eng-GB', true), |
|
| 1217 | 'limit' => 20, |
|
| 1218 | 'sortClauses' => [new SortClause\ContentId()], |
|
| 1219 | ] |
|
| 1220 | ) |
|
| 1221 | ) |
|
| 1222 | ); |
|
| 1223 | } |
|
| 1224 | ||
| 1225 | public function testVisibilityFilter() |
|
| 1226 | { |
|
| @@ 1112-1126 (lines=15) @@ | ||
| 1109 | ); |
|
| 1110 | } |
|
| 1111 | ||
| 1112 | public function testLanguageCodeFilterWithAlwaysAvailable() |
|
| 1113 | { |
|
| 1114 | $this->assertSearchResults( |
|
| 1115 | [2, 5, 12, 13, 14, 15, 43, 44, 45, 48, 51, 52, 53, 58, 59, 70, 72, 76, 78, 82], |
|
| 1116 | $this->getContentSearchHandler()->findLocations( |
|
| 1117 | new LocationQuery( |
|
| 1118 | [ |
|
| 1119 | 'filter' => new Criterion\LanguageCode('eng-GB', true), |
|
| 1120 | 'limit' => 20, |
|
| 1121 | 'sortClauses' => [new SortClause\ContentId()], |
|
| 1122 | ] |
|
| 1123 | ) |
|
| 1124 | ) |
|
| 1125 | ); |
|
| 1126 | } |
|
| 1127 | ||
| 1128 | public function testMatchAllFilter() |
|
| 1129 | { |
|