| @@ 413-435 (lines=23) @@ | ||
| 410 | ); |
|
| 411 | } |
|
| 412 | ||
| 413 | public function testLocationIdParentLocationIdAndCombinatorFilter() |
|
| 414 | { |
|
| 415 | $this->assertSearchResults( |
|
| 416 | [44, 160], |
|
| 417 | $this->getContentSearchHandler()->findLocations( |
|
| 418 | new LocationQuery( |
|
| 419 | [ |
|
| 420 | 'filter' => new Criterion\LogicalAnd( |
|
| 421 | [ |
|
| 422 | new Criterion\LocationId( |
|
| 423 | [2, 44, 160, 166] |
|
| 424 | ), |
|
| 425 | new Criterion\ParentLocationId( |
|
| 426 | [5, 156] |
|
| 427 | ), |
|
| 428 | ] |
|
| 429 | ), |
|
| 430 | 'limit' => 10, |
|
| 431 | ] |
|
| 432 | ) |
|
| 433 | ) |
|
| 434 | ); |
|
| 435 | } |
|
| 436 | ||
| 437 | public function testContentDepthFilterEq() |
|
| 438 | { |
|
| @@ 610-634 (lines=25) @@ | ||
| 607 | ); |
|
| 608 | } |
|
| 609 | ||
| 610 | public function testLocationNotCombinatorFilter() |
|
| 611 | { |
|
| 612 | $this->assertSearchResults( |
|
| 613 | [2, 5], |
|
| 614 | $this->getContentSearchHandler()->findLocations( |
|
| 615 | new LocationQuery( |
|
| 616 | [ |
|
| 617 | 'filter' => new Criterion\LogicalAnd( |
|
| 618 | [ |
|
| 619 | new Criterion\LocationId( |
|
| 620 | [2, 5, 12, 356] |
|
| 621 | ), |
|
| 622 | new Criterion\LogicalNot( |
|
| 623 | new Criterion\LocationId( |
|
| 624 | [12, 13, 14] |
|
| 625 | ) |
|
| 626 | ), |
|
| 627 | ] |
|
| 628 | ), |
|
| 629 | 'limit' => 10, |
|
| 630 | ] |
|
| 631 | ) |
|
| 632 | ) |
|
| 633 | ); |
|
| 634 | } |
|
| 635 | ||
| 636 | public function testLocationOrCombinatorFilter() |
|
| 637 | { |
|