mirror of
https://github.com/nextcloud/server.git
synced 2026-04-26 08:38:11 -04:00
fix(tests): Fix sharebymail tests
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
5f903bb6ec
commit
441ca8b365
2 changed files with 4 additions and 2 deletions
|
|
@ -678,8 +678,8 @@ class ShareByMailProvider implements IShareProvider {
|
|||
$qb = $this->dbConnection->getQueryBuilder();
|
||||
$qb->update('share')
|
||||
->where($qb->expr()->eq('id', $qb->createNamedParameter($share->getId())))
|
||||
->set('item_source', $qb->createNamedParameter($share->getNode()->getId()))
|
||||
->set('file_source', $qb->createNamedParameter($share->getNode()->getId()))
|
||||
->set('item_source', $qb->createNamedParameter($share->getNodeId()))
|
||||
->set('file_source', $qb->createNamedParameter($share->getNodeId()))
|
||||
->set('share_with', $qb->createNamedParameter($share->getSharedWith()))
|
||||
->set('permissions', $qb->createNamedParameter($share->getPermissions()))
|
||||
->set('uid_owner', $qb->createNamedParameter($share->getShareOwner()))
|
||||
|
|
|
|||
|
|
@ -643,6 +643,8 @@ class ShareByMailProviderTest extends TestCase {
|
|||
$this->share->expects($this->once())->method('getSharedBy')->willReturn($sharedBy);
|
||||
$this->share->expects($this->any())->method('getNote')->willReturn($note);
|
||||
$this->share->expects($this->atLeastOnce())->method('getId')->willReturn($id);
|
||||
$this->share->expects($this->atLeastOnce())->method('getNodeId')->willReturn($itemSource);
|
||||
$this->share->expects($this->once())->method('getSharedWith')->willReturn($shareWith);
|
||||
|
||||
$this->assertSame($this->share,
|
||||
$instance->update($this->share)
|
||||
|
|
|
|||
Loading…
Reference in a new issue