diff options
author | sidey79 <s.butzek@gmx.de> | 2017-08-09 21:52:23 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2017-11-10 17:08:15 +0100 |
commit | ea0ad82e5684b61c6b2536642a73a360db346e43 (patch) | |
tree | 959dd6efe1d1abefdd36dfde2c532443afc4f4bd /apps/user_ldap/tests | |
parent | 45dfc1113725c27bfbf4dbc433d8df873bc764cb (diff) | |
download | nextcloud-server-ea0ad82e5684b61c6b2536642a73a360db346e43.tar.gz nextcloud-server-ea0ad82e5684b61c6b2536642a73a360db346e43.zip |
Update testUpdateNoRefresh
Mocked getAppValue to deliver a value of 1800 when updateAttributesInterval is requested by needsRefresh.
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/user_ldap/tests')
-rw-r--r-- | apps/user_ldap/tests/User/UserTest.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/user_ldap/tests/User/UserTest.php b/apps/user_ldap/tests/User/UserTest.php index 5e911159285..8e4bb93c555 100644 --- a/apps/user_ldap/tests/User/UserTest.php +++ b/apps/user_ldap/tests/User/UserTest.php @@ -871,7 +871,14 @@ class UserTest extends \Test\TestCase { ->with($this->equalTo('alice'), $this->equalTo('user_ldap'), $this->equalTo(User::USER_PREFKEY_LASTREFRESH), $this->equalTo(0)) - ->will($this->returnValue(time())); + ->will($this->returnValue(time() - 10)); + + $config->expects($this->once()) + ->method('getAppValue') + ->with($this->equalTo('user_ldap'), + $this->equalTo('updateAttributesInterval'), + $this->anything()) + ->will($this->returnValue(1800); $config->expects($this->exactly(2)) ->method('getUserValue'); $config->expects($this->never()) |