Code Duplication    Length = 14-14 lines in 2 locations

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

@@ 481-494 (lines=14) @@
478
        );
479
    }
480
481
    public function testContentDepthFilterGreaterThan()
482
    {
483
        $this->assertSearchResults(
484
            [99, 102, 135, 136, 137, 139, 140, 142, 143, 144, 145, 148, 151, 174, 175, 177, 194, 196, 197, 198, 199, 200, 201, 202, 203, 205, 206, 207, 208, 209, 210, 211, 212, 214, 215],
485
            $this->getContentSearchHandler()->findLocations(
486
                new LocationQuery(
487
                    [
488
                        'filter' => new Criterion\Location\Depth(Criterion\Operator::GT, 4),
489
                        'limit' => 50,
490
                    ]
491
                )
492
            )
493
        );
494
    }
495
496
    public function testContentDepthFilterGreaterThanOrEqual()
497
    {
@@ 496-509 (lines=14) @@
493
        );
494
    }
495
496
    public function testContentDepthFilterGreaterThanOrEqual()
497
    {
498
        $this->assertSearchResults(
499
            [99, 102, 135, 136, 137, 139, 140, 142, 143, 144, 145, 148, 151, 174, 175, 177, 194, 196, 197, 198, 199, 200, 201, 202, 203, 205, 206, 207, 208, 209, 210, 211, 212, 214, 215],
500
            $this->getContentSearchHandler()->findLocations(
501
                new LocationQuery(
502
                    [
503
                        'filter' => new Criterion\Location\Depth(Criterion\Operator::GTE, 5),
504
                        'limit' => 50,
505
                    ]
506
                )
507
            )
508
        );
509
    }
510
511
    public function testContentDepthFilterLessThan()
512
    {