| @@ 1261-1279 (lines=19) @@ | ||
| 1258 | ); |
|
| 1259 | } |
|
| 1260 | ||
| 1261 | public function testUserMetadataFilterOwnerAdministrator() |
|
| 1262 | { |
|
| 1263 | $this->assertSearchResults( |
|
| 1264 | array(4, 10, 11, 12, 13, 14, 41, 42, 45, 49), |
|
| 1265 | $this->getContentSearchHandler()->findContent( |
|
| 1266 | new Query( |
|
| 1267 | array( |
|
| 1268 | 'filter' => new Criterion\UserMetadata( |
|
| 1269 | Criterion\UserMetadata::OWNER, |
|
| 1270 | Criterion\Operator::EQ, |
|
| 1271 | 14 |
|
| 1272 | ), |
|
| 1273 | 'limit' => 10, |
|
| 1274 | 'sortClauses' => array(new SortClause\ContentId()), |
|
| 1275 | ) |
|
| 1276 | ) |
|
| 1277 | ) |
|
| 1278 | ); |
|
| 1279 | } |
|
| 1280 | ||
| 1281 | public function testUserMetadataFilterOwnerEqAMember() |
|
| 1282 | { |
|
| @@ 739-753 (lines=15) @@ | ||
| 736 | ); |
|
| 737 | } |
|
| 738 | ||
| 739 | public function testObjectStateIdFilter() |
|
| 740 | { |
|
| 741 | $this->assertSearchResults( |
|
| 742 | array(5, 12, 13, 14, 15, 43, 44, 45, 48, 51), |
|
| 743 | $this->getContentSearchHandler()->findLocations( |
|
| 744 | new LocationQuery( |
|
| 745 | array( |
|
| 746 | 'filter' => new Criterion\ObjectStateId(1), |
|
| 747 | 'limit' => 10, |
|
| 748 | 'sortClauses' => array(new SortClause\ContentId()), |
|
| 749 | ) |
|
| 750 | ) |
|
| 751 | ) |
|
| 752 | ); |
|
| 753 | } |
|
| 754 | ||
| 755 | public function testObjectStateIdFilterIn() |
|
| 756 | { |
|
| @@ 916-934 (lines=19) @@ | ||
| 913 | ); |
|
| 914 | } |
|
| 915 | ||
| 916 | public function testUserMetadataFilterOwnerAdministrator() |
|
| 917 | { |
|
| 918 | $this->assertSearchResults( |
|
| 919 | array(2, 5, 12, 13, 14, 15, 43, 44, 45, 48), |
|
| 920 | $this->getContentSearchHandler()->findLocations( |
|
| 921 | new LocationQuery( |
|
| 922 | array( |
|
| 923 | 'filter' => new Criterion\UserMetadata( |
|
| 924 | Criterion\UserMetadata::OWNER, |
|
| 925 | Criterion\Operator::EQ, |
|
| 926 | 14 |
|
| 927 | ), |
|
| 928 | 'limit' => 10, |
|
| 929 | 'sortClauses' => array(new SortClause\Location\Id()), |
|
| 930 | ) |
|
| 931 | ) |
|
| 932 | ) |
|
| 933 | ); |
|
| 934 | } |
|
| 935 | ||
| 936 | public function testUserMetadataFilterOwnerEqAMember() |
|
| 937 | { |
|
| @@ 1080-1094 (lines=15) @@ | ||
| 1077 | ); |
|
| 1078 | } |
|
| 1079 | ||
| 1080 | public function testLanguageCodeFilter() |
|
| 1081 | { |
|
| 1082 | $this->assertSearchResults( |
|
| 1083 | array(2, 5, 12, 13, 14, 15, 43, 44, 45, 48), |
|
| 1084 | $this->getContentSearchHandler()->findLocations( |
|
| 1085 | new LocationQuery( |
|
| 1086 | array( |
|
| 1087 | 'filter' => new Criterion\LanguageCode('eng-US'), |
|
| 1088 | 'limit' => 10, |
|
| 1089 | 'sortClauses' => array(new SortClause\Location\Id()), |
|
| 1090 | ) |
|
| 1091 | ) |
|
| 1092 | ) |
|
| 1093 | ); |
|
| 1094 | } |
|
| 1095 | ||
| 1096 | public function testLanguageCodeFilterIn() |
|
| 1097 | { |
|