diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2016-02-02 14:18:59 +0100 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2016-02-02 14:23:45 +0100 |
commit | dc32f49c6ee25770b461f11287fd9695f2429c91 (patch) | |
tree | 37b4a2b3dcb98be57bc4fdef38ccdea6b729be18 /tests | |
parent | 4d7130ad315637b7b7b925efce4032472f4530f8 (diff) | |
download | nextcloud-server-dc32f49c6ee25770b461f11287fd9695f2429c91.tar.gz nextcloud-server-dc32f49c6ee25770b461f11287fd9695f2429c91.zip |
[Share 2.0] Use GenericShareException
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/share20/managertest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/share20/managertest.php b/tests/lib/share20/managertest.php index 5dcf8f0760e..34cc39a77df 100644 --- a/tests/lib/share20/managertest.php +++ b/tests/lib/share20/managertest.php @@ -586,7 +586,7 @@ class ManagerTest extends \Test\TestCase { try { $this->invokePrivate($this->manager, 'generalCreateChecks', [$share]); $thrown = false; - } catch (\OC\HintException $e) { + } catch (\OCP\Share\Exceptions\GenericShareException $e) { $this->assertEquals($exceptionMessage, $e->getHint()); $thrown = true; } catch(\InvalidArgumentException $e) { @@ -598,7 +598,7 @@ class ManagerTest extends \Test\TestCase { } /** - * @expectedException \OC\HintException + * @expectedException \OCP\Share\Exceptions\GenericShareException * @expectedExceptionMessage Expiration date is in the past */ public function testvalidateExpirationDateInPast() { @@ -644,7 +644,7 @@ class ManagerTest extends \Test\TestCase { try { $this->invokePrivate($this->manager, 'validateExpirationDate', [$share]); - } catch (\OC\HintException $e) { + } catch (\OCP\Share\Exceptions\GenericShareException $e) { $this->assertEquals('Cannot set expiration date more than 3 days in the future', $e->getMessage()); $this->assertEquals('Cannot set expiration date more than 3 days in the future', $e->getHint()); $this->assertEquals(404, $e->getCode()); |