| @@ 456-469 (lines=14) @@ | ||
| 453 | ); |
|
| 454 | } |
|
| 455 | ||
| 456 | public function testContentDepthFilterIn() |
|
| 457 | { |
|
| 458 | $this->assertSearchResults( |
|
| 459 | array(2, 5, 12, 13, 14, 43, 44, 48, 51, 52, 53, 54, 56, 58, 59, 69, 77, 86, 96, 107, 153, 156, 167, 190, 227), |
|
| 460 | $this->getContentSearchHandler()->findLocations( |
|
| 461 | new LocationQuery( |
|
| 462 | array( |
|
| 463 | 'filter' => new Criterion\Location\Depth(Criterion\Operator::IN, array(1, 2)), |
|
| 464 | 'limit' => 50, |
|
| 465 | ) |
|
| 466 | ) |
|
| 467 | ) |
|
| 468 | ); |
|
| 469 | } |
|
| 470 | ||
| 471 | public function testContentDepthFilterBetween() |
|
| 472 | { |
|
| @@ 530-543 (lines=14) @@ | ||
| 527 | ); |
|
| 528 | } |
|
| 529 | ||
| 530 | public function testContentDepthFilterLessThanOrEqual() |
|
| 531 | { |
|
| 532 | $this->assertSearchResults( |
|
| 533 | array(2, 5, 12, 13, 14, 43, 44, 48, 51, 52, 53, 54, 56, 58, 59, 69, 77, 86, 96, 107, 153, 156, 167, 190, 227), |
|
| 534 | $this->getContentSearchHandler()->findLocations( |
|
| 535 | new LocationQuery( |
|
| 536 | array( |
|
| 537 | 'filter' => new Criterion\Location\Depth(Criterion\Operator::LTE, 2), |
|
| 538 | 'limit' => 50, |
|
| 539 | ) |
|
| 540 | ) |
|
| 541 | ) |
|
| 542 | ); |
|
| 543 | } |
|
| 544 | ||
| 545 | public function testLocationPriorityFilter() |
|
| 546 | { |
|