summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-03-18 15:26:04 +0100
committerRobin Appelman <icewind@owncloud.com>2015-03-26 19:56:57 +0100
commit1be7da4a57ed006bd246f25dbe053b58b89557c9 (patch)
tree377cea7c0ea851f9cf4b16a2194c6df8b1704129 /apps/files_sharing/tests
parent173c31e42af766298c9f43837a9a3e4021cdc131 (diff)
downloadnextcloud-server-1be7da4a57ed006bd246f25dbe053b58b89557c9.tar.gz
nextcloud-server-1be7da4a57ed006bd246f25dbe053b58b89557c9.zip
replace share proxy with hook
Diffstat (limited to 'apps/files_sharing/tests')
-rw-r--r--apps/files_sharing/tests/unsharechildren.php4
-rw-r--r--apps/files_sharing/tests/updater.php1
2 files changed, 1 insertions, 4 deletions
diff --git a/apps/files_sharing/tests/unsharechildren.php b/apps/files_sharing/tests/unsharechildren.php
index 574f1dd08d8..b49180fdc83 100644
--- a/apps/files_sharing/tests/unsharechildren.php
+++ b/apps/files_sharing/tests/unsharechildren.php
@@ -37,9 +37,7 @@ class UnshareChildren extends TestCase {
protected function setUp() {
parent::setUp();
- // load proxies
- \OC::$CLASSPATH['OCA\Files\Share\Proxy'] = 'files_sharing/lib/proxy.php';
- \OC_FileProxy::register(new \OCA\Files\Share\Proxy());
+ \OCP\Util::connectHook('OC_Filesystem', 'post_delete', '\OCA\Files_Sharing\Hooks', 'unshareChildren');
$this->folder = self::TEST_FOLDER_NAME;
$this->subfolder = '/subfolder_share_api_test';
diff --git a/apps/files_sharing/tests/updater.php b/apps/files_sharing/tests/updater.php
index f019fc6a4b2..df1bbe1cc66 100644
--- a/apps/files_sharing/tests/updater.php
+++ b/apps/files_sharing/tests/updater.php
@@ -66,7 +66,6 @@ class Test_Files_Sharing_Updater extends OCA\Files_sharing\Tests\TestCase {
\OC_App::enable('files_trashbin');
\OCA\Files_Trashbin\Trashbin::registerHooks();
- OC_FileProxy::register(new OCA\Files\Share\Proxy());
$fileinfo = \OC\Files\Filesystem::getFileInfo($this->folder);
$this->assertTrue($fileinfo instanceof \OC\Files\FileInfo);