Code Duplication    Length = 23-25 lines in 2 locations

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

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