| @@ 481-494 (lines=14) @@ | ||
| 478 | ); |
|
| 479 | } |
|
| 480 | ||
| 481 | public function testContentDepthFilterGreaterThan() |
|
| 482 | { |
|
| 483 | $this->assertSearchResults( |
|
| 484 | array(99, 102, 135, 136, 137, 139, 140, 142, 143, 144, 145, 148, 151, 174, 175, 177, 194, 196, 197, 198, 199, 200, 201, 202, 203, 205, 206, 207, 208, 209, 210, 211, 212, 214, 215), |
|
| 485 | $this->getContentSearchHandler()->findLocations( |
|
| 486 | new LocationQuery( |
|
| 487 | array( |
|
| 488 | 'filter' => new Criterion\Location\Depth(Criterion\Operator::GT, 4), |
|
| 489 | 'limit' => 50, |
|
| 490 | ) |
|
| 491 | ) |
|
| 492 | ) |
|
| 493 | ); |
|
| 494 | } |
|
| 495 | ||
| 496 | public function testContentDepthFilterGreaterThanOrEqual() |
|
| 497 | { |
|
| @@ 496-509 (lines=14) @@ | ||
| 493 | ); |
|
| 494 | } |
|
| 495 | ||
| 496 | public function testContentDepthFilterGreaterThanOrEqual() |
|
| 497 | { |
|
| 498 | $this->assertSearchResults( |
|
| 499 | array(99, 102, 135, 136, 137, 139, 140, 142, 143, 144, 145, 148, 151, 174, 175, 177, 194, 196, 197, 198, 199, 200, 201, 202, 203, 205, 206, 207, 208, 209, 210, 211, 212, 214, 215), |
|
| 500 | $this->getContentSearchHandler()->findLocations( |
|
| 501 | new LocationQuery( |
|
| 502 | array( |
|
| 503 | 'filter' => new Criterion\Location\Depth(Criterion\Operator::GTE, 5), |
|
| 504 | 'limit' => 50, |
|
| 505 | ) |
|
| 506 | ) |
|
| 507 | ) |
|
| 508 | ); |
|
| 509 | } |
|
| 510 | ||
| 511 | public function testContentDepthFilterLessThan() |
|
| 512 | { |
|