eZ\Publish\Core\Repository\Tests\Service\Integration\TrashBase::testRecoverToNonExistingLocation PHP Method

testRecoverToNonExistingLocation() public method

Test recovering a location from trash to non existing location.
    public function testRecoverToNonExistingLocation()
    {
        $locationService = $this->repository->getLocationService();
        $trashService = $this->repository->getTrashService();
        $location = $locationService->loadLocation(44);
        $trashItem = $trashService->trash($location);
        $newParentLocation = new Location(array('id' => APIBaseTest::DB_INT_MAX, 'parentLocationId' => APIBaseTest::DB_INT_MAX));
        $trashService->recover($trashItem, $newParentLocation);
    }