| @@ 475-488 (lines=14) @@ | ||
| 472 | ); |
|
| 473 | } |
|
| 474 | ||
| 475 | public function testContentDepthFilterGreaterThan() |
|
| 476 | { |
|
| 477 | $this->assertSearchResults( |
|
| 478 | 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), |
|
| 479 | $this->getContentSearchHandler()->findLocations( |
|
| 480 | new LocationQuery( |
|
| 481 | array( |
|
| 482 | 'filter' => new Criterion\Location\Depth(Criterion\Operator::GT, 4), |
|
| 483 | 'limit' => 50, |
|
| 484 | ) |
|
| 485 | ) |
|
| 486 | ) |
|
| 487 | ); |
|
| 488 | } |
|
| 489 | ||
| 490 | public function testContentDepthFilterGreaterThanOrEqual() |
|
| 491 | { |
|
| @@ 490-503 (lines=14) @@ | ||
| 487 | ); |
|
| 488 | } |
|
| 489 | ||
| 490 | public function testContentDepthFilterGreaterThanOrEqual() |
|
| 491 | { |
|
| 492 | $this->assertSearchResults( |
|
| 493 | 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), |
|
| 494 | $this->getContentSearchHandler()->findLocations( |
|
| 495 | new LocationQuery( |
|
| 496 | array( |
|
| 497 | 'filter' => new Criterion\Location\Depth(Criterion\Operator::GTE, 5), |
|
| 498 | 'limit' => 50, |
|
| 499 | ) |
|
| 500 | ) |
|
| 501 | ) |
|
| 502 | ); |
|
| 503 | } |
|
| 504 | ||
| 505 | public function testContentDepthFilterLessThan() |
|
| 506 | { |
|