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'])
|
->setMethods(['getShareById', 'deleteChildren'])
|
||||||
->getMock();
|
->getMock();
|
||||||
|
|
||||||
|
$manager->method('deleteChildren')->willReturn([]);
|
||||||
|
|
||||||
$path = $this->createMock(File::class);
|
$path = $this->createMock(File::class);
|
||||||
$path->method('getId')->willReturn(1);
|
$path->method('getId')->willReturn(1);
|
||||||
|
|
||||||
|
@ -254,6 +256,8 @@ class ManagerTest extends \Test\TestCase {
|
||||||
->setMethods(['getShareById', 'deleteChildren'])
|
->setMethods(['getShareById', 'deleteChildren'])
|
||||||
->getMock();
|
->getMock();
|
||||||
|
|
||||||
|
$manager->method('deleteChildren')->willReturn([]);
|
||||||
|
|
||||||
$share = $this->manager->newShare();
|
$share = $this->manager->newShare();
|
||||||
$share->setId(42)
|
$share->setId(42)
|
||||||
->setProviderId('prov')
|
->setProviderId('prov')
|
||||||
|
|
Loading…
Reference in New Issue