diff options
author | Torben Dannhauer <torben@dannhauer.de> | 2016-05-31 06:53:28 +0200 |
---|---|---|
committer | Thomas Müller <DeepDiver1975@users.noreply.github.com> | 2016-05-31 06:53:28 +0200 |
commit | 718f0757e497f58ddbd783e69227ce6987dff59f (patch) | |
tree | b467c07995fdbe982e4ff8feae9c9bf11e5f7942 /tests/lib/Share/ShareTest.php | |
parent | 76c0bc29fe2caaddce4e21b80b51781969287eb9 (diff) | |
download | nextcloud-server-718f0757e497f58ddbd783e69227ce6987dff59f.tar.gz nextcloud-server-718f0757e497f58ddbd783e69227ce6987dff59f.zip |
Fix for #23066 (#24689)
Diffstat (limited to 'tests/lib/Share/ShareTest.php')
-rw-r--r-- | tests/lib/Share/ShareTest.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/lib/Share/ShareTest.php b/tests/lib/Share/ShareTest.php index 339193e7ff2..42adee21d0c 100644 --- a/tests/lib/Share/ShareTest.php +++ b/tests/lib/Share/ShareTest.php @@ -990,7 +990,7 @@ class ShareTest extends \Test\TestCase { * @param $item */ public function testCheckPasswordProtectedShare($expected, $item) { - \OC::$server->getSession()->set('public_link_authenticated', 100); + \OC::$server->getSession()->set('public_link_authenticated', '100'); $result = \OCP\Share::checkPasswordProtectedShare($item); $this->assertEquals($expected, $result); } @@ -1002,8 +1002,12 @@ class ShareTest extends \Test\TestCase { array(true, array('share_with' => '')), array(true, array('share_with' => '1234567890', 'share_type' => '1')), array(true, array('share_with' => '1234567890', 'share_type' => 1)), + array(true, array('share_with' => '1234567890', 'share_type' => '3', 'id' => '100')), + array(true, array('share_with' => '1234567890', 'share_type' => 3, 'id' => '100')), array(true, array('share_with' => '1234567890', 'share_type' => '3', 'id' => 100)), array(true, array('share_with' => '1234567890', 'share_type' => 3, 'id' => 100)), + array(false, array('share_with' => '1234567890', 'share_type' => '3', 'id' => '101')), + array(false, array('share_with' => '1234567890', 'share_type' => 3, 'id' => '101')), array(false, array('share_with' => '1234567890', 'share_type' => '3', 'id' => 101)), array(false, array('share_with' => '1234567890', 'share_type' => 3, 'id' => 101)), ); |