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>
This commit is contained in:
parent
45dfc11137
commit
ea0ad82e56
|
@ -871,7 +871,14 @@ class UserTest extends \Test\TestCase {
|
||||||
->with($this->equalTo('alice'), $this->equalTo('user_ldap'),
|
->with($this->equalTo('alice'), $this->equalTo('user_ldap'),
|
||||||
$this->equalTo(User::USER_PREFKEY_LASTREFRESH),
|
$this->equalTo(User::USER_PREFKEY_LASTREFRESH),
|
||||||
$this->equalTo(0))
|
$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))
|
$config->expects($this->exactly(2))
|
||||||
->method('getUserValue');
|
->method('getUserValue');
|
||||||
$config->expects($this->never())
|
$config->expects($this->never())
|
||||||
|
|
Loading…
Reference in New Issue