Code Duplication    Length = 27-27 lines in 2 locations

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

@@ 1399-1425 (lines=27) @@
1396
        );
1397
    }
1398
1399
    public function testFieldFilterOr()
1400
    {
1401
        $this->assertSearchResults(
1402
            [12, 71, 73, 74],
1403
            $this->getContentSearchHandler()->findLocations(
1404
                new LocationQuery(
1405
                    [
1406
                        'filter' => new Criterion\LogicalOr(
1407
                            [
1408
                                new Criterion\Field(
1409
                                    'name',
1410
                                    Criterion\Operator::EQ,
1411
                                    'members'
1412
                                ),
1413
                                new Criterion\Field(
1414
                                    'price',
1415
                                    Criterion\Operator::BETWEEN,
1416
                                    [10000, 1000000]
1417
                                ),
1418
                            ]
1419
                        ),
1420
                        'limit' => 10,
1421
                    ]
1422
                )
1423
            )
1424
        );
1425
    }
1426
1427
    public function testIsMainLocationFilter()
1428
    {

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

@@ 922-948 (lines=27) @@
919
        );
920
    }
921
922
    public function testFieldFilterOr()
923
    {
924
        $this->assertSearchResults(
925
            [11, 69, 71, 72],
926
            $this->getContentSearchHandler()->findContent(
927
                new Query(
928
                    [
929
                        'filter' => new Criterion\LogicalOr(
930
                            [
931
                                new Criterion\Field(
932
                                    'name',
933
                                    Criterion\Operator::EQ,
934
                                    'members'
935
                                ),
936
                                new Criterion\Field(
937
                                    'price',
938
                                    Criterion\Operator::BETWEEN,
939
                                    [10000, 1000000]
940
                                ),
941
                            ]
942
                        ),
943
                        'limit' => 10,
944
                    ]
945
                )
946
            )
947
        );
948
    }
949
950
    public function testFullTextFilter()
951
    {