| @@ 355-369 (lines=15) @@ | ||
| 352 | * |
|
| 353 | * @covers \eZ\Publish\API\Repository\TrashService::recover |
|
| 354 | */ |
|
| 355 | public function testRecoverThrowsNotFoundExceptionForNonExistingTrashItem() |
|
| 356 | { |
|
| 357 | $this->expectException(\eZ\Publish\API\Repository\Exceptions\NotFoundException::class); |
|
| 358 | ||
| 359 | $repository = $this->getRepository(); |
|
| 360 | $trashService = $repository->getTrashService(); |
|
| 361 | ||
| 362 | $trashService->recover( |
|
| 363 | $this->getTrashItemDouble( |
|
| 364 | 12364, |
|
| 365 | 12345, |
|
| 366 | 12363 |
|
| 367 | ) |
|
| 368 | ); |
|
| 369 | } |
|
| 370 | ||
| 371 | /** |
|
| 372 | * Test for the trash() method. |
|
| @@ 955-967 (lines=13) @@ | ||
| 952 | * |
|
| 953 | * @covers \eZ\Publish\API\Repository\TrashService::deleteTrashItem |
|
| 954 | */ |
|
| 955 | public function testDeleteThrowsNotFoundExceptionForNonExistingTrashItem() |
|
| 956 | { |
|
| 957 | $this->expectException(\eZ\Publish\API\Repository\Exceptions\NotFoundException::class); |
|
| 958 | ||
| 959 | $repository = $this->getRepository(); |
|
| 960 | $trashService = $repository->getTrashService(); |
|
| 961 | ||
| 962 | $trashService->deleteTrashItem($this->getTrashItemDouble( |
|
| 963 | 12364, |
|
| 964 | 12345, |
|
| 965 | 12363 |
|
| 966 | )); |
|
| 967 | } |
|
| 968 | ||
| 969 | /** |
|
| 970 | * Returns an array with the remoteIds of all child locations of the |
|