| @@ 407-429 (lines=23) @@ | ||
| 404 | ); |
|
| 405 | } |
|
| 406 | ||
| 407 | public function testLocationIdParentLocationIdAndCombinatorFilter() |
|
| 408 | { |
|
| 409 | $this->assertSearchResults( |
|
| 410 | array(44, 160), |
|
| 411 | $this->getContentSearchHandler()->findLocations( |
|
| 412 | new LocationQuery( |
|
| 413 | array( |
|
| 414 | 'filter' => new Criterion\LogicalAnd( |
|
| 415 | array( |
|
| 416 | new Criterion\LocationId( |
|
| 417 | array(2, 44, 160, 166) |
|
| 418 | ), |
|
| 419 | new Criterion\ParentLocationId( |
|
| 420 | array(5, 156) |
|
| 421 | ), |
|
| 422 | ) |
|
| 423 | ), |
|
| 424 | 'limit' => 10, |
|
| 425 | ) |
|
| 426 | ) |
|
| 427 | ) |
|
| 428 | ); |
|
| 429 | } |
|
| 430 | ||
| 431 | public function testContentDepthFilterEq() |
|
| 432 | { |
|
| @@ 604-628 (lines=25) @@ | ||
| 601 | ); |
|
| 602 | } |
|
| 603 | ||
| 604 | public function testLocationNotCombinatorFilter() |
|
| 605 | { |
|
| 606 | $this->assertSearchResults( |
|
| 607 | array(2, 5), |
|
| 608 | $this->getContentSearchHandler()->findLocations( |
|
| 609 | new LocationQuery( |
|
| 610 | array( |
|
| 611 | 'filter' => new Criterion\LogicalAnd( |
|
| 612 | array( |
|
| 613 | new Criterion\LocationId( |
|
| 614 | array(2, 5, 12, 356) |
|
| 615 | ), |
|
| 616 | new Criterion\LogicalNot( |
|
| 617 | new Criterion\LocationId( |
|
| 618 | array(12, 13, 14) |
|
| 619 | ) |
|
| 620 | ), |
|
| 621 | ) |
|
| 622 | ), |
|
| 623 | 'limit' => 10, |
|
| 624 | ) |
|
| 625 | ) |
|
| 626 | ) |
|
| 627 | ); |
|
| 628 | } |
|
| 629 | ||
| 630 | public function testLocationOrCombinatorFilter() |
|
| 631 | { |
|