Code Duplication    Length = 18-18 lines in 2 locations

eZ/Publish/API/Repository/Tests/SearchServiceTest.php 2 locations

@@ 1114-1131 (lines=18) @@
1111
    /**
1112
     * @expectedException \RuntimeException
1113
     */
1114
    public function testFindLocationsNoPerformCountException()
1115
    {
1116
        if (ltrim(get_class($this->getSetupFactory()), '\\') !== 'eZ\Publish\API\Repository\Tests\SetupFactory\Legacy') {
1117
            $this->markTestSkipped('Only applicable to Legacy/DB based search');
1118
        }
1119
1120
        $repository = $this->getRepository();
1121
        $searchService = $repository->getSearchService();
1122
1123
        $query = new LocationQuery();
1124
        $query->performCount = false;
1125
        $query->limit = 0;
1126
        $query->query = new Criterion\ContentTypeId(
1127
            [4]
1128
        );
1129
1130
        $searchService->findLocations($query);
1131
    }
1132
1133
    /**
1134
     * Create test Content with ezcountry field having multiple countries selected.
@@ 1067-1084 (lines=18) @@
1064
    /**
1065
     * @expectedException \RuntimeException
1066
     */
1067
    public function testFindNoPerformCountException()
1068
    {
1069
        if (ltrim(get_class($this->getSetupFactory()), '\\') !== 'eZ\Publish\API\Repository\Tests\SetupFactory\Legacy') {
1070
            $this->markTestSkipped('Only applicable to Legacy/DB based search');
1071
        }
1072
1073
        $repository = $this->getRepository();
1074
        $searchService = $repository->getSearchService();
1075
1076
        $query = new Query();
1077
        $query->performCount = false;
1078
        $query->limit = 0;
1079
        $query->query = new Criterion\ContentTypeId(
1080
            [4]
1081
        );
1082
1083
        $searchService->findContent($query);
1084
    }
1085
1086
    public function testFindLocationsNoPerformCount()
1087
    {