Code Duplication    Length = 15-15 lines in 2 locations

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

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