| @@ 453-466 (lines=14) @@ | ||
| 450 | ); |
|
| 451 | } |
|
| 452 | ||
| 453 | public function testContentDepthFilterIn() |
|
| 454 | { |
|
| 455 | $this->assertSearchResults( |
|
| 456 | 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), |
|
| 457 | $this->getContentSearchHandler()->findLocations( |
|
| 458 | new LocationQuery( |
|
| 459 | array( |
|
| 460 | 'filter' => new Criterion\Location\Depth(Criterion\Operator::IN, array(1, 2)), |
|
| 461 | 'limit' => 50, |
|
| 462 | ) |
|
| 463 | ) |
|
| 464 | ) |
|
| 465 | ); |
|
| 466 | } |
|
| 467 | ||
| 468 | public function testContentDepthFilterBetween() |
|
| 469 | { |
|
| @@ 527-540 (lines=14) @@ | ||
| 524 | ); |
|
| 525 | } |
|
| 526 | ||
| 527 | public function testContentDepthFilterLessThanOrEqual() |
|
| 528 | { |
|
| 529 | $this->assertSearchResults( |
|
| 530 | 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), |
|
| 531 | $this->getContentSearchHandler()->findLocations( |
|
| 532 | new LocationQuery( |
|
| 533 | array( |
|
| 534 | 'filter' => new Criterion\Location\Depth(Criterion\Operator::LTE, 2), |
|
| 535 | 'limit' => 50, |
|
| 536 | ) |
|
| 537 | ) |
|
| 538 | ) |
|
| 539 | ); |
|
| 540 | } |
|
| 541 | ||
| 542 | public function testLocationPriorityFilter() |
|
| 543 | { |
|