Code Duplication    Length = 17-17 lines in 3 locations

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

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