Skip to content

Commit

Permalink
deleteChildren only returns array
Browse files Browse the repository at this point in the history
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
  • Loading branch information
ArtificialOwl committed Dec 9, 2020
1 parent 78b7dba commit b986ece
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/lib/Share20/ManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ public function testDelete($shareType, $sharedWith) {
->setMethods(['getShareById', 'deleteChildren'])
->getMock();

$manager->method('deleteChildren')->willReturn([]);

$path = $this->createMock(File::class);
$path->method('getId')->willReturn(1);

Expand Down Expand Up @@ -254,6 +256,8 @@ public function testDeleteLazyShare() {
->setMethods(['getShareById', 'deleteChildren'])
->getMock();

$manager->method('deleteChildren')->willReturn([]);

$share = $this->manager->newShare();
$share->setId(42)
->setProviderId('prov')
Expand Down

0 comments on commit b986ece

Please sign in to comment.