deleteChildren only returns array

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
This commit is contained in:
Maxence Lange 2020-12-09 13:51:59 -01:00 committed by Roeland Jago Douma
parent 874a1a4c43
commit e0bafb7475
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 4 additions and 0 deletions

View File

@ -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')