| @@ 485-498 (lines=14) @@ | ||
| 482 | ); |
|
| 483 | } |
|
| 484 | ||
| 485 | public function testContentDepthFilterGreaterThan() |
|
| 486 | { |
|
| 487 | $this->assertSearchResults( |
|
| 488 | 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), |
|
| 489 | $this->getContentSearchHandler()->findLocations( |
|
| 490 | new LocationQuery( |
|
| 491 | array( |
|
| 492 | 'filter' => new Criterion\Location\Depth(Criterion\Operator::GT, 4), |
|
| 493 | 'limit' => 50, |
|
| 494 | ) |
|
| 495 | ) |
|
| 496 | ) |
|
| 497 | ); |
|
| 498 | } |
|
| 499 | ||
| 500 | public function testContentDepthFilterGreaterThanOrEqual() |
|
| 501 | { |
|
| @@ 500-513 (lines=14) @@ | ||
| 497 | ); |
|
| 498 | } |
|
| 499 | ||
| 500 | public function testContentDepthFilterGreaterThanOrEqual() |
|
| 501 | { |
|
| 502 | $this->assertSearchResults( |
|
| 503 | 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), |
|
| 504 | $this->getContentSearchHandler()->findLocations( |
|
| 505 | new LocationQuery( |
|
| 506 | array( |
|
| 507 | 'filter' => new Criterion\Location\Depth(Criterion\Operator::GTE, 5), |
|
| 508 | 'limit' => 50, |
|
| 509 | ) |
|
| 510 | ) |
|
| 511 | ) |
|
| 512 | ); |
|
| 513 | } |
|
| 514 | ||
| 515 | public function testContentDepthFilterLessThan() |
|
| 516 | { |
|