diff options
author | Joas Schilling <coding@schilljs.com> | 2017-06-13 18:44:14 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-06-13 18:44:50 +0200 |
commit | 0f8c1b13a39541fecdb149f41e9904d89a60ea64 (patch) | |
tree | 23cccc41c6cbf8e88f6dc19d53fc0e737b7b4fa3 /tests | |
parent | 72ccab0ab69ec9b23f90a0a908a9861c11323e94 (diff) | |
download | nextcloud-server-0f8c1b13a39541fecdb149f41e9904d89a60ea64.tar.gz nextcloud-server-0f8c1b13a39541fecdb149f41e9904d89a60ea64.zip |
Fix unknown share token
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Share20/ManagerTest.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/lib/Share20/ManagerTest.php b/tests/lib/Share20/ManagerTest.php index 13556285b61..79af2f60ce8 100644 --- a/tests/lib/Share20/ManagerTest.php +++ b/tests/lib/Share20/ManagerTest.php @@ -2142,6 +2142,7 @@ class ManagerTest extends \Test\TestCase { /** * @expectedException \OCP\Share\Exceptions\ShareNotFound + * @expectedExceptionMessage The requested share does not exist anymore */ public function testGetShareByTokenExpired() { $this->config @@ -2150,6 +2151,10 @@ class ManagerTest extends \Test\TestCase { ->with('core', 'shareapi_allow_links', 'yes') ->willReturn('yes'); + $this->l->expects($this->once()) + ->method('t') + ->willReturnArgument(0); + $manager = $this->createManagerMock() ->setMethods(['deleteShare']) ->getMock(); |