deleteChildren only returns array
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
This commit is contained in:
parent
874a1a4c43
commit
e0bafb7475
|
@ -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 New Issue