diff options
author | Leon Klingele <leon@struktur.de> | 2019-03-06 13:07:41 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2019-04-11 10:11:05 +0200 |
commit | f420647add0f5ffc917301335d82d951a1df502e (patch) | |
tree | 8d16e655c9ba13f97991c720eeb0fbfc88a8add3 /tests | |
parent | 36618b111fde55ba5c8ddedc294e58927257d107 (diff) | |
download | nextcloud-server-f420647add0f5ffc917301335d82d951a1df502e.tar.gz nextcloud-server-f420647add0f5ffc917301335d82d951a1df502e.zip |
lib/private/User: do not change user properties if value has not changed
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/User/UserTest.php | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/tests/lib/User/UserTest.php b/tests/lib/User/UserTest.php index 16fde814b85..a800e790370 100644 --- a/tests/lib/User/UserTest.php +++ b/tests/lib/User/UserTest.php @@ -676,14 +676,8 @@ class UserTest extends TestCase { $config->expects($this->any()) ->method('getUserValue') ->willReturn('foo@bar.com'); - $config->expects($this->once()) - ->method('setUserValue') - ->with( - 'foo', - 'settings', - 'email', - 'foo@bar.com' - ); + $config->expects($this->never()) + ->method('setUserValue'); $user = new User('foo', $backend, $this->dispatcher, $emitter, $config); $user->setEMailAddress('foo@bar.com'); @@ -741,14 +735,8 @@ class UserTest extends TestCase { $config->expects($this->any()) ->method('getUserValue') ->willReturn('23 TB'); - $config->expects($this->once()) - ->method('setUserValue') - ->with( - 'foo', - 'files', - 'quota', - '23 TB' - ); + $config->expects($this->never()) + ->method('setUserValue'); $user = new User('foo', $backend, $this->dispatcher, $emitter, $config); $user->setQuota('23 TB'); |