Code Duplication    Length = 18-18 lines in 2 locations

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

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