Code Duplication    Length = 15-15 lines in 2 locations

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

@@ 253-267 (lines=15) @@
250
     *
251
     * @return \eZ\Publish\API\Repository\Values\Content\VersionInfo
252
     */
253
    public function testLoadVersionInfoById()
254
    {
255
        /* BEGIN: Use Case */
256
        $contentService = $this->repository->getContentService();
257
258
        $versionInfo = $contentService->loadVersionInfoById(4);
259
        /* END: Use Case */
260
261
        $this->assertInstanceOf(
262
            'eZ\\Publish\\API\\Repository\\Values\\Content\\VersionInfo',
263
            $versionInfo
264
        );
265
266
        return $versionInfo;
267
    }
268
269
    /**
270
     * Test for the loadVersionInfoById() method.
@@ 292-306 (lines=15) @@
289
     *
290
     * @return \eZ\Publish\API\Repository\Values\Content\VersionInfo
291
     */
292
    public function testLoadVersionInfoByIdWithSecondParameter()
293
    {
294
        /* BEGIN: Use Case */
295
        $contentService = $this->repository->getContentService();
296
297
        $versionInfo = $contentService->loadVersionInfoById(4, 1);
298
        /* END: Use Case */
299
300
        $this->assertInstanceOf(
301
            'eZ\\Publish\\API\\Repository\\Values\\Content\\VersionInfo',
302
            $versionInfo
303
        );
304
305
        return $versionInfo;
306
    }
307
308
    /**
309
     * Test for the loadVersionInfoById() method.