Code Duplication    Length = 17-17 lines in 3 locations

eZ/Publish/Core/Repository/Tests/Service/Integration/ContentBase.php 3 locations

@@ 1169-1185 (lines=17) @@
1166
     *
1167
     * @covers \eZ\Publish\Core\Repository\ContentService::newContentMetadataUpdateStruct
1168
     */
1169
    public function testNewContentMetadataUpdateStruct()
1170
    {
1171
        /* BEGIN: Use Case */
1172
        $contentService = $this->repository->getContentService();
1173
1174
        $contentMetadataUpdateStruct = $contentService->newContentMetadataUpdateStruct();
1175
        /* END: Use Case */
1176
1177
        $this->assertInstanceOf(
1178
            'eZ\\Publish\\API\\Repository\\Values\\Content\\ContentMetadataUpdateStruct',
1179
            $contentMetadataUpdateStruct
1180
        );
1181
1182
        foreach ($contentMetadataUpdateStruct as $propertyName => $propertyValue) {
1183
            $this->assertNull($propertyValue, "Property '{$propertyName}' initial value should be null'");
1184
        }
1185
    }
1186
1187
    /**
1188
     * Test for the updateContentMetadata() method.
@@ 2270-2286 (lines=17) @@
2267
     *
2268
     * @covers \eZ\Publish\Core\Repository\ContentService::newTranslationInfo
2269
     */
2270
    public function testNewTranslationInfo()
2271
    {
2272
        /* BEGIN: Use Case */
2273
        $contentService = $this->repository->getContentService();
2274
2275
        $translationInfo = $contentService->newTranslationInfo();
2276
        /* END: Use Case */
2277
2278
        $this->assertInstanceOf(
2279
            'eZ\\Publish\\API\\Repository\\Values\\Content\\TranslationInfo',
2280
            $translationInfo
2281
        );
2282
2283
        foreach ($translationInfo as $propertyName => $propertyValue) {
2284
            $this->assertNull($propertyValue, "Property '{$propertyName}' initial value should be null'");
2285
        }
2286
    }
2287
2288
    /**
2289
     * Test for the newTranslationValues() method.
@@ 2293-2309 (lines=17) @@
2290
     *
2291
     * @covers \eZ\Publish\Core\Repository\ContentService::newTranslationValues
2292
     */
2293
    public function testNewTranslationValues()
2294
    {
2295
        /* BEGIN: Use Case */
2296
        $contentService = $this->repository->getContentService();
2297
2298
        $translationValues = $contentService->newTranslationValues();
2299
        /* END: Use Case */
2300
2301
        $this->assertInstanceOf(
2302
            'eZ\\Publish\\API\\Repository\\Values\\Content\\TranslationValues',
2303
            $translationValues
2304
        );
2305
2306
        foreach ($translationValues as $propertyName => $propertyValue) {
2307
            $this->assertNull($propertyValue, "Property '{$propertyName}' initial value should be null'");
2308
        }
2309
    }
2310
2311
    /**
2312
     * Test for the loadRelations() method.