@@ 1410-1427 (lines=18) @@ | ||
1407 | * @expectedException \eZ\Publish\API\Repository\Exceptions\InvalidArgumentException |
|
1408 | * @expectedExceptionMessage Argument '$criterion->target' is invalid: No searchable fields found for the given criterion target 'some_hopefully_unknown_field' |
|
1409 | */ |
|
1410 | public function testInvalidFieldIdentifierRange() |
|
1411 | { |
|
1412 | $repository = $this->getRepository(); |
|
1413 | $searchService = $repository->getSearchService(); |
|
1414 | ||
1415 | $searchService->findContent( |
|
1416 | new Query( |
|
1417 | [ |
|
1418 | 'filter' => new Criterion\Field( |
|
1419 | 'some_hopefully_unknown_field', |
|
1420 | Criterion\Operator::BETWEEN, |
|
1421 | [10, 1000] |
|
1422 | ), |
|
1423 | 'sortClauses' => [new SortClause\ContentId()], |
|
1424 | ] |
|
1425 | ) |
|
1426 | ); |
|
1427 | } |
|
1428 | ||
1429 | /** |
|
1430 | * @expectedException \eZ\Publish\API\Repository\Exceptions\InvalidArgumentException |
@@ 389-406 (lines=18) @@ | ||
386 | /** |
|
387 | * @expectedException \eZ\Publish\API\Repository\Exceptions\InvalidArgumentException |
|
388 | */ |
|
389 | public function testInvalidFieldIdentifierRange() |
|
390 | { |
|
391 | $repository = $this->getRepository(); |
|
392 | $searchService = $repository->getSearchService(); |
|
393 | ||
394 | $searchService->findLocations( |
|
395 | new LocationQuery( |
|
396 | [ |
|
397 | 'filter' => new Criterion\Field( |
|
398 | 'some_hopefully_unknown_field', |
|
399 | Criterion\Operator::BETWEEN, |
|
400 | [10, 1000] |
|
401 | ), |
|
402 | 'sortClauses' => [new SortClause\ContentId()], |
|
403 | ] |
|
404 | ) |
|
405 | ); |
|
406 | } |
|
407 | ||
408 | /** |
|
409 | * @expectedException \eZ\Publish\API\Repository\Exceptions\InvalidArgumentException |