diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2015-03-20 13:38:08 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2015-03-21 09:47:07 +0100 |
commit | bdde2156da7639af39051f083df434e5298585dd (patch) | |
tree | 264ef8155e9db6cb088f8b88c96e07c7e37a809b /apps | |
parent | 9ce8e1ddc7a842db32cc58530e2022238b6e35ea (diff) | |
download | nextcloud-server-bdde2156da7639af39051f083df434e5298585dd.tar.gz nextcloud-server-bdde2156da7639af39051f083df434e5298585dd.zip |
Added extra unit test
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/tests/api.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files_sharing/tests/api.php b/apps/files_sharing/tests/api.php index 371c94a8c88..4f9041ae27a 100644 --- a/apps/files_sharing/tests/api.php +++ b/apps/files_sharing/tests/api.php @@ -103,6 +103,11 @@ class Test_Files_Sharing_Api extends TestCase { // check if we have a token $this->assertTrue(is_string($data['token'])); + // check for correct link + $url = \OC::$server->getURLGenerator()->getAbsoluteURL('/index.php/s/' . $data['token']); + $this->assertEquals($url, $data['url']); + + $share = $this->getShareFromId($data['id']); $items = \OCP\Share::getItemShared('file', $share['item_source']); |