diff options
author | Vincent Petry <vincent@nextcloud.com> | 2021-04-19 15:25:26 +0200 |
---|---|---|
committer | Vincent Petry <vincent@nextcloud.com> | 2021-04-21 08:00:29 +0200 |
commit | 6bd49e256b22fd21c5a0f815f54ea6c145345f39 (patch) | |
tree | 735df2860d81e2d9271638ddb424e16fd42003be /tests | |
parent | 80d93acff0a10efcb8ed96946bddece44dd32b58 (diff) | |
download | nextcloud-server-6bd49e256b22fd21c5a0f815f54ea6c145345f39.tar.gz nextcloud-server-6bd49e256b22fd21c5a0f815f54ea6c145345f39.zip |
Fix empty password check for mail shares
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Share20/ManagerTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/Share20/ManagerTest.php b/tests/lib/Share20/ManagerTest.php index 12425683e71..2c8d8563a63 100644 --- a/tests/lib/Share20/ManagerTest.php +++ b/tests/lib/Share20/ManagerTest.php @@ -3511,7 +3511,7 @@ class ManagerTest extends \Test\TestCase { $manager->expects($this->once())->method('canShare')->willReturn(true); $manager->expects($this->once())->method('getShareById')->with('foo:42')->willReturn($originalShare); $manager->expects($this->once())->method('generalCreateChecks')->with($share); - $manager->expects($this->never())->method('verifyPassword'); + $manager->expects($this->once())->method('verifyPassword'); $manager->expects($this->never())->method('pathCreateChecks'); $manager->expects($this->never())->method('linkCreateChecks'); $manager->expects($this->never())->method('validateExpirationDateLink'); @@ -3583,7 +3583,7 @@ class ManagerTest extends \Test\TestCase { $manager->expects($this->once())->method('canShare')->willReturn(true); $manager->expects($this->once())->method('getShareById')->with('foo:42')->willReturn($originalShare); $manager->expects($this->once())->method('generalCreateChecks')->with($share); - $manager->expects($this->never())->method('verifyPassword'); + $manager->expects($this->once())->method('verifyPassword'); $manager->expects($this->never())->method('pathCreateChecks'); $manager->expects($this->never())->method('linkCreateChecks'); $manager->expects($this->never())->method('validateExpirationDateLink'); |