Add unit tests for new classes
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -55,6 +55,8 @@ class AttachmentService {
|
||||
* @param AttachmentMapper $attachmentMapper
|
||||
* @param CardMapper $cardMapper
|
||||
* @param PermissionService $permissionService
|
||||
* @param Application $application
|
||||
* @param ICacheFactory $cacheFactory
|
||||
* @param $userId
|
||||
* @throws \OCP\AppFramework\QueryException
|
||||
*/
|
||||
@@ -257,6 +259,6 @@ class AttachmentService {
|
||||
}
|
||||
} catch (InvalidAttachmentType $e) {
|
||||
}
|
||||
throw new NoPermissionException();
|
||||
throw new NoPermissionException('Restore is not allowed.');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user