Code Duplication    Length = 14-14 lines in 2 locations

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

@@ 455-468 (lines=14) @@
452
        );
453
    }
454
455
    public function testContentDepthFilterIn()
456
    {
457
        $this->assertSearchResults(
458
            [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],
459
            $this->getContentSearchHandler()->findLocations(
460
                new LocationQuery(
461
                    [
462
                        'filter' => new Criterion\Location\Depth(Criterion\Operator::IN, [1, 2]),
463
                        'limit' => 50,
464
                    ]
465
                )
466
            )
467
        );
468
    }
469
470
    public function testContentDepthFilterBetween()
471
    {
@@ 529-542 (lines=14) @@
526
        );
527
    }
528
529
    public function testContentDepthFilterLessThanOrEqual()
530
    {
531
        $this->assertSearchResults(
532
            [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],
533
            $this->getContentSearchHandler()->findLocations(
534
                new LocationQuery(
535
                    [
536
                        'filter' => new Criterion\Location\Depth(Criterion\Operator::LTE, 2),
537
                        'limit' => 50,
538
                    ]
539
                )
540
            )
541
        );
542
    }
543
544
    public function testLocationPriorityFilter()
545
    {