diff options
Diffstat (limited to 'apps/user_ldap/tests/User/UserTest.php')
-rw-r--r-- | apps/user_ldap/tests/User/UserTest.php | 79 |
1 files changed, 0 insertions, 79 deletions
diff --git a/apps/user_ldap/tests/User/UserTest.php b/apps/user_ldap/tests/User/UserTest.php index 12991835daf..6ad69b500e7 100644 --- a/apps/user_ldap/tests/User/UserTest.php +++ b/apps/user_ldap/tests/User/UserTest.php @@ -824,57 +824,6 @@ class UserTest extends \Test\TestCase { $this->user->updateAvatar(); } - public function testUpdateBeforeFirstLogin() { - $this->config->expects($this->at(0)) - ->method('getUserValue') - ->with($this->equalTo($this->uid), $this->equalTo('user_ldap'), - $this->equalTo(User::USER_PREFKEY_FIRSTLOGIN), - $this->equalTo(0)) - ->willReturn(0); - $this->config->expects($this->at(1)) - ->method('getUserValue') - ->with($this->equalTo($this->uid), $this->equalTo('user_ldap'), - $this->equalTo(User::USER_PREFKEY_LASTREFRESH), - $this->equalTo(0)) - ->willReturn(0); - $this->config->expects($this->exactly(2)) - ->method('getUserValue'); - $this->config->expects($this->never()) - ->method('setUserValue'); - - $this->user->update(); - } - - public function testUpdateAfterFirstLogin() { - $this->config->expects($this->at(0)) - ->method('getUserValue') - ->with($this->equalTo($this->uid), $this->equalTo('user_ldap'), - $this->equalTo(User::USER_PREFKEY_FIRSTLOGIN), - $this->equalTo(0)) - ->willReturn(1); - $this->config->expects($this->at(1)) - ->method('getUserValue') - ->with($this->equalTo($this->uid), $this->equalTo('user_ldap'), - $this->equalTo(User::USER_PREFKEY_LASTREFRESH), - $this->equalTo(0)) - ->willReturn(0); - $this->config->expects($this->exactly(2)) - ->method('getUserValue'); - $this->config->expects($this->once()) - ->method('setUserValue') - ->with($this->equalTo($this->uid), $this->equalTo('user_ldap'), - $this->equalTo(User::USER_PREFKEY_LASTREFRESH), - $this->anything()) - ->willReturn(true); - - $this->connection->expects($this->any()) - ->method('resolveRule') - ->with('avatar') - ->willReturn(['jpegphoto', 'thumbnailphoto']); - - $this->user->update(); - } - public function extStorageHomeDataProvider() { return [ [ 'myFolder', null ], @@ -918,33 +867,6 @@ class UserTest extends \Test\TestCase { $this->assertSame($expected, $actual); } - public function testUpdateNoRefresh() { - $this->config->expects($this->at(0)) - ->method('getUserValue') - ->with($this->equalTo($this->uid), $this->equalTo('user_ldap'), - $this->equalTo(User::USER_PREFKEY_FIRSTLOGIN), - $this->equalTo(0)) - ->willReturn(1); - $this->config->expects($this->at(1)) - ->method('getUserValue') - ->with($this->equalTo($this->uid), $this->equalTo('user_ldap'), - $this->equalTo(User::USER_PREFKEY_LASTREFRESH), - $this->equalTo(0)) - ->willReturn(time() - 10); - $this->config->expects($this->once()) - ->method('getAppValue') - ->with($this->equalTo('user_ldap'), - $this->equalTo('updateAttributesInterval'), - $this->anything()) - ->willReturn(1800); - $this->config->expects($this->exactly(2)) - ->method('getUserValue'); - $this->config->expects($this->never()) - ->method('setUserValue'); - - $this->user->update(); - } - public function testMarkLogin() { $this->config->expects($this->once()) ->method('setUserValue') @@ -997,7 +919,6 @@ class UserTest extends \Test\TestCase { public function testProcessAttributes() { $requiredMethods = [ - 'markRefreshTime', 'updateQuota', 'updateEmail', 'composeAndStoreDisplayName', |