Code Duplication    Length = 27-27 lines in 2 locations

eZ/Publish/Core/Search/Legacy/Tests/Content/HandlerContentTest.php 1 location

@@ 1006-1032 (lines=27) @@
1003
        );
1004
    }
1005
1006
    public function testFieldFilterOr()
1007
    {
1008
        $this->assertSearchResults(
1009
            array(11, 69, 71, 72),
1010
            $this->getContentSearchHandler()->findContent(
1011
                new Query(
1012
                    array(
1013
                        'filter' => new Criterion\LogicalOr(
1014
                            array(
1015
                                new Criterion\Field(
1016
                                    'name',
1017
                                    Criterion\Operator::EQ,
1018
                                    'members'
1019
                                ),
1020
                                new Criterion\Field(
1021
                                    'price',
1022
                                    Criterion\Operator::BETWEEN,
1023
                                    array(10000, 1000000)
1024
                                ),
1025
                            )
1026
                        ),
1027
                        'limit' => 10,
1028
                    )
1029
                )
1030
            )
1031
        );
1032
    }
1033
1034
    public function testFullTextFilter()
1035
    {

eZ/Publish/Core/Search/Legacy/Tests/Content/HandlerLocationTest.php 1 location

@@ 1482-1508 (lines=27) @@
1479
        );
1480
    }
1481
1482
    public function testFieldFilterOr()
1483
    {
1484
        $this->assertSearchResults(
1485
            array(12, 71, 73, 74),
1486
            $this->getContentSearchHandler()->findLocations(
1487
                new LocationQuery(
1488
                    array(
1489
                        'filter' => new Criterion\LogicalOr(
1490
                            array(
1491
                                new Criterion\Field(
1492
                                    'name',
1493
                                    Criterion\Operator::EQ,
1494
                                    'members'
1495
                                ),
1496
                                new Criterion\Field(
1497
                                    'price',
1498
                                    Criterion\Operator::BETWEEN,
1499
                                    array(10000, 1000000)
1500
                                ),
1501
                            )
1502
                        ),
1503
                        'limit' => 10,
1504
                    )
1505
                )
1506
            )
1507
        );
1508
    }
1509
1510
    public function testIsMainLocationFilter()
1511
    {