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