Rename deleteAllSharesForUser() to deleteAllSharesByUser()
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
479c427f2a
commit
6c8bcb38f1
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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']);
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue