]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix mock call to download
authorRoeland Jago Douma <rullzer@owncloud.com>
Wed, 13 Jan 2016 10:30:22 +0000 (11:30 +0100)
committerThomas Müller <thomas.mueller@tmit.eu>
Wed, 13 Jan 2016 11:27:48 +0000 (12:27 +0100)
We can only mock public and protected functions in phpunit.

apps/dav/lib/carddav/syncservice.php

index 148ba4b90812b7951f7cdc7ee35b0e63ef18965c..30dc78c48776da5444c0dc09f288402f3c44c019 100644 (file)
@@ -124,7 +124,7 @@ class SyncService {
         * @param string $resourcePath
         * @return array
         */
-       private function download($url, $sharedSecret, $resourcePath) {
+       protected function download($url, $sharedSecret, $resourcePath) {
                $settings = [
                        'baseUri' => $url,
                        'userName' => 'system',