mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
deleteChildren only returns array
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
This commit is contained in:
parent
874a1a4c43
commit
e0bafb7475
1 changed files with 4 additions and 0 deletions
|
|
@ -209,6 +209,8 @@ class ManagerTest extends \Test\TestCase {
|
|||
->setMethods(['getShareById', 'deleteChildren'])
|
||||
->getMock();
|
||||
|
||||
$manager->method('deleteChildren')->willReturn([]);
|
||||
|
||||
$path = $this->createMock(File::class);
|
||||
$path->method('getId')->willReturn(1);
|
||||
|
||||
|
|
@ -254,6 +256,8 @@ class ManagerTest extends \Test\TestCase {
|
|||
->setMethods(['getShareById', 'deleteChildren'])
|
||||
->getMock();
|
||||
|
||||
$manager->method('deleteChildren')->willReturn([]);
|
||||
|
||||
$share = $this->manager->newShare();
|
||||
$share->setId(42)
|
||||
->setProviderId('prov')
|
||||
|
|
|
|||
Loading…
Reference in a new issue