summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2016-09-28 15:32:03 +0200
committerThomas Citharel <tcit@tcit.fr>2016-09-28 15:32:03 +0200
commit6c8bcb38f1124d0be7cee770ab67730d90dbd783 (patch)
tree0dc9a84a38b5e0b3310b379f91586e746e477a72 /apps
parent479c427f2a3328ccf34b5ef57598eb8fc305f995 (diff)
downloadnextcloud-server-6c8bcb38f1124d0be7cee770ab67730d90dbd783.tar.gz
nextcloud-server-6c8bcb38f1124d0be7cee770ab67730d90dbd783.zip
Rename deleteAllSharesForUser() to deleteAllSharesByUser()
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'apps')
-rw-r--r--apps/dav/lib/CalDAV/CalDavBackend.php2
-rw-r--r--apps/dav/lib/HookManager.php2
-rw-r--r--apps/dav/tests/unit/DAV/HookManagerTest.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/apps/dav/lib/CalDAV/CalDavBackend.php b/apps/dav/lib/CalDAV/CalDavBackend.php
index 535bf3956e8..d9537368eb5 100644
--- a/apps/dav/lib/CalDAV/CalDavBackend.php
+++ b/apps/dav/lib/CalDAV/CalDavBackend.php
@@ -555,7 +555,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
* @param string $principaluri
* @return void
*/
- function deleteAllSharesForUser($principaluri) {
+ function deleteAllSharesByUser($principaluri) {
$this->sharingBackend->deleteAllSharesByUser($principaluri);
}
diff --git a/apps/dav/lib/HookManager.php b/apps/dav/lib/HookManager.php
index e54a39acf2f..364db19d76a 100644
--- a/apps/dav/lib/HookManager.php
+++ b/apps/dav/lib/HookManager.php
@@ -106,7 +106,7 @@ class HookManager {
foreach ($this->calendarsToDelete as $calendar) {
$this->calDav->deleteCalendar($calendar['id']);
}
- $this->calDav->deleteAllSharesForUser('principals/users/' . $uid);
+ $this->calDav->deleteAllSharesByUser('principals/users/' . $uid);
foreach ($this->addressBooksToDelete as $addressBook) {
$this->cardDav->deleteAddressBook($addressBook['id']);
diff --git a/apps/dav/tests/unit/DAV/HookManagerTest.php b/apps/dav/tests/unit/DAV/HookManagerTest.php
index e9351ebc84a..5b7d4700a5f 100644
--- a/apps/dav/tests/unit/DAV/HookManagerTest.php
+++ b/apps/dav/tests/unit/DAV/HookManagerTest.php
@@ -187,7 +187,7 @@ class HookManagerTest extends TestCase {
['id' => 'personal']
]);
$cal->expects($this->once())->method('deleteCalendar');
- $cal->expects($this->once())->method('deleteAllSharesForUser');
+ $cal->expects($this->once())->method('deleteAllSharesByUser');
/** @var CardDavBackend | \PHPUnit_Framework_MockObject_MockObject $card */
$card = $this->getMockBuilder(CardDavBackend::class)