diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2016-02-16 16:04:17 +0100 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2016-02-17 13:55:39 +0100 |
commit | 2aa0b885f622af21f80f6a36e744d4ecf74fdfff (patch) | |
tree | 713a92ff9dcc6b57dfcefbc5ac1bde779342e5d5 /apps/files_sharing/tests | |
parent | 7b0f83b616246c5274b551ab46b923b0989c464e (diff) | |
download | nextcloud-server-2aa0b885f622af21f80f6a36e744d4ecf74fdfff.tar.gz nextcloud-server-2aa0b885f622af21f80f6a36e744d4ecf74fdfff.zip |
OCS Share API should not return invalid shares
Since we have lazy shares it can happen that a share is actually
invalid. See https://github.com/owncloud/core/issues/20908
This add checks for the get methods to handle the NotFound exception.
Diffstat (limited to 'apps/files_sharing/tests')
-rw-r--r-- | apps/files_sharing/tests/api/share20ocstest.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/files_sharing/tests/api/share20ocstest.php b/apps/files_sharing/tests/api/share20ocstest.php index a1094ce4b22..736bf89e683 100644 --- a/apps/files_sharing/tests/api/share20ocstest.php +++ b/apps/files_sharing/tests/api/share20ocstest.php @@ -28,6 +28,12 @@ use OCP\IURLGenerator; use OCP\IUser; use OCP\Files\IRootFolder; +/** + * Class Share20OCSTest + * + * @package OCA\Files_Sharing\Tests\API + * @group DB + */ class Share20OCSTest extends \Test\TestCase { /** @var \OC\Share20\Manager | \PHPUnit_Framework_MockObject_MockObject */ |