Code Duplication    Length = 27-27 lines in 2 locations

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

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

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

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