_RegisteredUser = new FakeUser(1); } /** * @var array|AttributeValue[] */ public $_AttributeValues = array(); public function Register($login, $email, $firstName, $lastName, $password, $timezone, $language, $homepageId, $additionalFields = array(), $attributes = array(), $groups = array(), $acceptTerms = false) { $this->_RegisterCalled = true; $this->_Login = $login; $this->_Email = $email; $this->_First = $firstName; $this->_Last = $lastName; $this->_Password = $password; $this->_Timezone = $timezone; $this->_HomepageId = $homepageId; $this->_AdditionalFields = $additionalFields; $this->_AttributeValues = $attributes; $this->_Groups = $groups; $this->_TermsAccepted = $acceptTerms; $this->_Language = $language; return $this->_RegisteredUser; } public function UserExists($loginName, $emailAddress) { $this->_ExistsCalled = true; $this->_LastLogin = $loginName; $this->_LastEmail = $emailAddress; return $this->_UserExists; } public function Synchronize(AuthenticatedUser $user, $insertOnly=false, $overwritePassword = true) { $this->_SynchronizeCalled = true; $this->_LastSynchronizedUser = $user; } }