Code Duplication    Length = 18-18 lines in 2 locations

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

@@ 1131-1148 (lines=18) @@
1128
    /**
1129
     * @expectedException \RuntimeException
1130
     */
1131
    public function testFindNoPerformCountException()
1132
    {
1133
        if (ltrim(get_class($this->getSetupFactory()), '\\') !== 'eZ\Publish\API\Repository\Tests\SetupFactory\Legacy') {
1134
            $this->markTestSkipped('Only applicable to Legacy/DB based search');
1135
        }
1136
1137
        $repository = $this->getRepository();
1138
        $searchService = $repository->getSearchService();
1139
1140
        $query = new Query();
1141
        $query->performCount = false;
1142
        $query->limit = 0;
1143
        $query->query = new Criterion\ContentTypeId(
1144
            array(4)
1145
        );
1146
1147
        $searchService->findContent($query);
1148
    }
1149
1150
    public function testFindLocationsNoPerformCount()
1151
    {
@@ 1179-1196 (lines=18) @@
1176
    /**
1177
     * @expectedException \RuntimeException
1178
     */
1179
    public function testFindLocationsNoPerformCountException()
1180
    {
1181
        if (ltrim(get_class($this->getSetupFactory()), '\\') !== 'eZ\Publish\API\Repository\Tests\SetupFactory\Legacy') {
1182
            $this->markTestSkipped('Only applicable to Legacy/DB based search');
1183
        }
1184
1185
        $repository = $this->getRepository();
1186
        $searchService = $repository->getSearchService();
1187
1188
        $query = new LocationQuery();
1189
        $query->performCount = false;
1190
        $query->limit = 0;
1191
        $query->query = new Criterion\ContentTypeId(
1192
            array(4)
1193
        );
1194
1195
        $searchService->findLocations($query);
1196
    }
1197
1198
    /**
1199
     * Create test Content with ezcountry field having multiple countries selected.