Code Duplication    Length = 18-18 lines in 2 locations

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

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