Code Duplication    Length = 18-18 lines in 2 locations

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

@@ 1099-1116 (lines=18) @@
1096
    /**
1097
     * @expectedException \RuntimeException
1098
     */
1099
    public function testFindNoPerformCountException()
1100
    {
1101
        if (ltrim(get_class($this->getSetupFactory()), '\\') !== 'eZ\Publish\API\Repository\Tests\SetupFactory\Legacy') {
1102
            $this->markTestSkipped('Only applicable to Legacy/DB based search');
1103
        }
1104
1105
        $repository = $this->getRepository();
1106
        $searchService = $repository->getSearchService();
1107
1108
        $query = new Query();
1109
        $query->performCount = false;
1110
        $query->limit = 0;
1111
        $query->query = new Criterion\ContentTypeId(
1112
            [4]
1113
        );
1114
1115
        $searchService->findContent($query);
1116
    }
1117
1118
    public function testFindLocationsNoPerformCount()
1119
    {
@@ 1146-1163 (lines=18) @@
1143
    /**
1144
     * @expectedException \RuntimeException
1145
     */
1146
    public function testFindLocationsNoPerformCountException()
1147
    {
1148
        if (ltrim(get_class($this->getSetupFactory()), '\\') !== 'eZ\Publish\API\Repository\Tests\SetupFactory\Legacy') {
1149
            $this->markTestSkipped('Only applicable to Legacy/DB based search');
1150
        }
1151
1152
        $repository = $this->getRepository();
1153
        $searchService = $repository->getSearchService();
1154
1155
        $query = new LocationQuery();
1156
        $query->performCount = false;
1157
        $query->limit = 0;
1158
        $query->query = new Criterion\ContentTypeId(
1159
            [4]
1160
        );
1161
1162
        $searchService->findLocations($query);
1163
    }
1164
1165
    /**
1166
     * Create movie Content with subtitle field set to null.