diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2015-01-12 17:51:09 +0100 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2015-01-13 14:22:54 +0100 |
commit | 83574053a3a960171a22af1ebb218e8e4cf03fd6 (patch) | |
tree | 41244cbc24861a1d184ed55cff8e41af0a670e03 /apps/files_encryption/tests | |
parent | 331d73c3a37e74f1e322b9bfb239940275422a65 (diff) | |
download | nextcloud-server-83574053a3a960171a22af1ebb218e8e4cf03fd6.tar.gz nextcloud-server-83574053a3a960171a22af1ebb218e8e4cf03fd6.zip |
if we download a public shared file we need to retrieve the user from the path
Diffstat (limited to 'apps/files_encryption/tests')
-rw-r--r-- | apps/files_encryption/tests/proxy.php | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/apps/files_encryption/tests/proxy.php b/apps/files_encryption/tests/proxy.php index d5d9cc7daee..a6b63176569 100644 --- a/apps/files_encryption/tests/proxy.php +++ b/apps/files_encryption/tests/proxy.php @@ -126,9 +126,7 @@ class Proxy extends TestCase { $this->view->mkdir(dirname($path)); $this->view->file_put_contents($path, "test"); - $testClass = new DummyProxy(); - - $result = $testClass->isExcludedPathTesting($path, $this->userId); + $result = \Test_Helper::invokePrivate(new \OCA\Files_Encryption\Proxy(), 'isExcludedPath', array($path)); $this->assertSame($expected, $result); $this->view->deleteAll(dirname($path)); @@ -149,12 +147,3 @@ class Proxy extends TestCase { } - -/** - * Dummy class to make protected methods available for testing - */ -class DummyProxy extends \OCA\Files_Encryption\Proxy { - public function isExcludedPathTesting($path, $uid) { - return $this->isExcludedPath($path, $uid); - } -} |