summaryrefslogtreecommitdiffstats
path: root/tests/lib
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2021-09-01 14:04:57 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2021-09-10 13:22:26 +0200
commit88fc177e2672d3fba5451e351967301f42cf3028 (patch)
treef905ed98515c5f96aa7cd1b6b97ad80fa06751d6 /tests/lib
parent414676468679ba93befde00322fcf2b8af9f3d2d (diff)
downloadnextcloud-server-88fc177e2672d3fba5451e351967301f42cf3028.tar.gz
nextcloud-server-88fc177e2672d3fba5451e351967301f42cf3028.zip
enable the user to set a primary (notification) email address (backend)
- specific getters and setters on IUser and implementation - new notify_email field in provisioning API Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib/User/UserTest.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/lib/User/UserTest.php b/tests/lib/User/UserTest.php
index 2366bf45321..ad8b01555ea 100644
--- a/tests/lib/User/UserTest.php
+++ b/tests/lib/User/UserTest.php
@@ -676,11 +676,14 @@ class UserTest extends TestCase {
$emitter->expects($this->never())
->method('emit');
+ $this->dispatcher->expects($this->never())
+ ->method('dispatch');
+
$config = $this->createMock(IConfig::class);
$config->expects($this->any())
->method('getUserValue')
->willReturn('foo@bar.com');
- $config->expects($this->never())
+ $config->expects($this->any())
->method('setUserValue');
$user = new User('foo', $backend, $this->dispatcher, $emitter, $config);