|
@@ 287-293 (lines=7) @@
|
| 284 |
|
* @expectedException \eZ\Publish\API\Repository\Exceptions\NotFoundException |
| 285 |
|
* @covers \eZ\Publish\API\Repository\TrashService::recover |
| 286 |
|
*/ |
| 287 |
|
public function testRecoverNonExistingTrashItem() |
| 288 |
|
{ |
| 289 |
|
$trashService = $this->repository->getTrashService(); |
| 290 |
|
|
| 291 |
|
$trashItem = new TrashItem(array('id' => APIBaseTest::DB_INT_MAX, 'parentLocationId' => APIBaseTest::DB_INT_MAX)); |
| 292 |
|
$trashService->recover($trashItem); |
| 293 |
|
} |
| 294 |
|
|
| 295 |
|
/** |
| 296 |
|
* Test recovering a location from trash to different location. |
|
@@ 397-403 (lines=7) @@
|
| 394 |
|
* @expectedException \eZ\Publish\API\Repository\Exceptions\NotFoundException |
| 395 |
|
* @covers \eZ\Publish\API\Repository\TrashService::deleteTrashItem |
| 396 |
|
*/ |
| 397 |
|
public function testDeleteNonExistingTrashItem() |
| 398 |
|
{ |
| 399 |
|
$trashService = $this->repository->getTrashService(); |
| 400 |
|
|
| 401 |
|
$trashItem = new TrashItem(array('id' => APIBaseTest::DB_INT_MAX)); |
| 402 |
|
$trashService->deleteTrashItem($trashItem); |
| 403 |
|
} |
| 404 |
|
|
| 405 |
|
/** |
| 406 |
|
* Test searching for trash items. |