@@ 1118-1132 (lines=15) @@ | ||
1115 | ); |
|
1116 | } |
|
1117 | ||
1118 | public function testLanguageCodeFilterWithAlwaysAvailable() |
|
1119 | { |
|
1120 | $this->assertSearchResults( |
|
1121 | [4, 10, 11, 12, 13, 14, 41, 42, 45, 49, 50, 51, 56, 57, 65, 68, 70, 74, 76, 80], |
|
1122 | $this->getContentSearchHandler()->findContent( |
|
1123 | new Query( |
|
1124 | [ |
|
1125 | 'filter' => new Criterion\LanguageCode('eng-GB', true), |
|
1126 | 'limit' => 20, |
|
1127 | 'sortClauses' => [new SortClause\ContentId()], |
|
1128 | ] |
|
1129 | ) |
|
1130 | ) |
|
1131 | ); |
|
1132 | } |
|
1133 | ||
1134 | public function testVisibilityFilter() |
|
1135 | { |
@@ 1030-1044 (lines=15) @@ | ||
1027 | ); |
|
1028 | } |
|
1029 | ||
1030 | public function testLanguageCodeFilterWithAlwaysAvailable() |
|
1031 | { |
|
1032 | $this->assertSearchResults( |
|
1033 | [2, 5, 12, 13, 14, 15, 43, 44, 45, 48, 51, 52, 53, 58, 59, 70, 72, 76, 78, 82], |
|
1034 | $this->getContentSearchHandler()->findLocations( |
|
1035 | new LocationQuery( |
|
1036 | [ |
|
1037 | 'filter' => new Criterion\LanguageCode('eng-GB', true), |
|
1038 | 'limit' => 20, |
|
1039 | 'sortClauses' => [new SortClause\ContentId()], |
|
1040 | ] |
|
1041 | ) |
|
1042 | ) |
|
1043 | ); |
|
1044 | } |
|
1045 | ||
1046 | public function testMatchAllFilter() |
|
1047 | { |