Rename deleteAllSharesForUser() to deleteAllSharesByUser()

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2016-09-28 15:32:03 +02:00
parent 479c427f2a
commit 6c8bcb38f1
No known key found for this signature in database
GPG Key ID: 5780691F5FE48FB5
3 changed files with 3 additions and 3 deletions

View File

@ -555,7 +555,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
* @param string $principaluri * @param string $principaluri
* @return void * @return void
*/ */
function deleteAllSharesForUser($principaluri) { function deleteAllSharesByUser($principaluri) {
$this->sharingBackend->deleteAllSharesByUser($principaluri); $this->sharingBackend->deleteAllSharesByUser($principaluri);
} }

View File

@ -106,7 +106,7 @@ class HookManager {
foreach ($this->calendarsToDelete as $calendar) { foreach ($this->calendarsToDelete as $calendar) {
$this->calDav->deleteCalendar($calendar['id']); $this->calDav->deleteCalendar($calendar['id']);
} }
$this->calDav->deleteAllSharesForUser('principals/users/' . $uid); $this->calDav->deleteAllSharesByUser('principals/users/' . $uid);
foreach ($this->addressBooksToDelete as $addressBook) { foreach ($this->addressBooksToDelete as $addressBook) {
$this->cardDav->deleteAddressBook($addressBook['id']); $this->cardDav->deleteAddressBook($addressBook['id']);

View File

@ -187,7 +187,7 @@ class HookManagerTest extends TestCase {
['id' => 'personal'] ['id' => 'personal']
]); ]);
$cal->expects($this->once())->method('deleteCalendar'); $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 */ /** @var CardDavBackend | \PHPUnit_Framework_MockObject_MockObject $card */
$card = $this->getMockBuilder(CardDavBackend::class) $card = $this->getMockBuilder(CardDavBackend::class)