summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2019-07-30 09:58:38 +0200
committerGitHub <noreply@github.com>2019-07-30 09:58:38 +0200
commitd4eb8481fa124e5841a3dcecb1e34465af178ef6 (patch)
tree487140b3df263ebec369625b3ae3bab927beea5a /tests
parent53330ce1fc07029f1f5af2e7036bcae651dabf6b (diff)
parent98237d2a00fe2b3699211231f06f2cbf180d68c2 (diff)
downloadnextcloud-server-d4eb8481fa124e5841a3dcecb1e34465af178ef6.tar.gz
nextcloud-server-d4eb8481fa124e5841a3dcecb1e34465af178ef6.zip
Merge pull request #16594 from nextcloud/tech-debt/noid/remove-unused-checkPasswordProtectedShare
Remove unused OC\Share\Share::checkPasswordProtectedShare
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Share/ShareTest.php29
1 files changed, 0 insertions, 29 deletions
diff --git a/tests/lib/Share/ShareTest.php b/tests/lib/Share/ShareTest.php
index 4d3b48b7aa4..7db58d744d5 100644
--- a/tests/lib/Share/ShareTest.php
+++ b/tests/lib/Share/ShareTest.php
@@ -223,35 +223,6 @@ class ShareTest extends \Test\TestCase {
}
/**
- * @dataProvider checkPasswordProtectedShareDataProvider
- * @param $expected
- * @param $item
- */
- public function testCheckPasswordProtectedShare($expected, $item) {
- \OC::$server->getSession()->set('public_link_authenticated', '100');
- $result = \OC\Share\Share::checkPasswordProtectedShare($item);
- $this->assertEquals($expected, $result);
- }
-
- function checkPasswordProtectedShareDataProvider() {
- return array(
- array(true, array()),
- array(true, array('share_with' => null)),
- 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)),
- );
- }
-
- /**
* @dataProvider urls
* @param string $url
* @param string $expectedResult