Code Duplication    Length = 18-18 lines in 2 locations

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

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