Code Duplication    Length = 14-14 lines in 2 locations

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

@@ 452-465 (lines=14) @@
449
        );
450
    }
451
452
    public function testContentDepthFilterIn()
453
    {
454
        $this->assertSearchResults(
455
            [2, 5, 12, 13, 14, 43, 44, 48, 51, 52, 53, 54, 56, 58, 59, 69, 77, 86, 96, 107, 153, 156, 167, 190, 227],
456
            $this->getContentSearchHandler()->findLocations(
457
                new LocationQuery(
458
                    [
459
                        'filter' => new Criterion\Location\Depth(Criterion\Operator::IN, [1, 2]),
460
                        'limit' => 50,
461
                    ]
462
                )
463
            )
464
        );
465
    }
466
467
    public function testContentDepthFilterBetween()
468
    {
@@ 526-539 (lines=14) @@
523
        );
524
    }
525
526
    public function testContentDepthFilterLessThanOrEqual()
527
    {
528
        $this->assertSearchResults(
529
            [2, 5, 12, 13, 14, 43, 44, 48, 51, 52, 53, 54, 56, 58, 59, 69, 77, 86, 96, 107, 153, 156, 167, 190, 227],
530
            $this->getContentSearchHandler()->findLocations(
531
                new LocationQuery(
532
                    [
533
                        'filter' => new Criterion\Location\Depth(Criterion\Operator::LTE, 2),
534
                        'limit' => 50,
535
                    ]
536
                )
537
            )
538
        );
539
    }
540
541
    public function testLocationPriorityFilter()
542
    {