| @@ 233-243 (lines=11) @@ | ||
| 230 | * |
|
| 231 | * @return void |
|
| 232 | */ |
|
| 233 | public function testParamHandlingWithIntOnStringField($groupId, $numRecords, $idList) |
|
| 234 | { |
|
| 235 | $client = static::createRestClient(); |
|
| 236 | $client->request('GET', '/analytics/customer-with-int-param-string-field?groupId='.$groupId); |
|
| 237 | ||
| 238 | $this->assertEquals($numRecords, count($client->getResults())); |
|
| 239 | ||
| 240 | foreach ($client->getResults() as $result) { |
|
| 241 | $this->assertContains($result->{'_id'}, $idList); |
|
| 242 | } |
|
| 243 | } |
|
| 244 | ||
| 245 | /** |
|
| 246 | * data provider |
|
| @@ 276-289 (lines=14) @@ | ||
| 273 | * |
|
| 274 | * @return void |
|
| 275 | */ |
|
| 276 | public function testParamArrayHandlingWithIntOnStringField($groupId, $idList) |
|
| 277 | { |
|
| 278 | $client = static::createRestClient(); |
|
| 279 | $client->request( |
|
| 280 | 'GET', |
|
| 281 | '/analytics/customer-with-int-param-array-field?groupId='.implode(',', $groupId) |
|
| 282 | ); |
|
| 283 | ||
| 284 | $this->assertEquals(count($idList), count($client->getResults())); |
|
| 285 | ||
| 286 | foreach ($client->getResults() as $result) { |
|
| 287 | $this->assertContains($result->{'_id'}, $idList); |
|
| 288 | } |
|
| 289 | } |
|
| 290 | ||
| 291 | /** |
|
| 292 | * data provider |
|