Code Duplication    Length = 23-25 lines in 2 locations

eZ/Publish/Core/Search/Legacy/Tests/Content/HandlerLocationTest.php 2 locations

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