Code Duplication    Length = 13-15 lines in 2 locations

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

@@ 356-370 (lines=15) @@
353
     *
354
     * @covers \eZ\Publish\API\Repository\TrashService::recover
355
     */
356
    public function testRecoverThrowsNotFoundExceptionForNonExistingTrashItem()
357
    {
358
        $this->expectException(\eZ\Publish\API\Repository\Exceptions\NotFoundException::class);
359
360
        $repository = $this->getRepository();
361
        $trashService = $repository->getTrashService();
362
363
        $trashService->recover(
364
            $this->getTrashItemDouble(
365
                12364,
366
                12345,
367
                12363
368
            )
369
        );
370
    }
371
372
    /**
373
     * Test for the trash() method.
@@ 879-891 (lines=13) @@
876
     *
877
     * @covers \eZ\Publish\API\Repository\TrashService::deleteTrashItem
878
     */
879
    public function testDeleteThrowsNotFoundExceptionForNonExistingTrashItem()
880
    {
881
        $this->expectException(\eZ\Publish\API\Repository\Exceptions\NotFoundException::class);
882
883
        $repository = $this->getRepository();
884
        $trashService = $repository->getTrashService();
885
886
        $trashService->deleteTrashItem($this->getTrashItemDouble(
887
            12364,
888
            12345,
889
            12363
890
        ));
891
    }
892
893
    /**
894
     * Returns an array with the remoteIds of all child locations of the