Lib_Test_Enterprise_ResetPasswordTest

The Gravity Forms Salesforce Add-On Lib Test Enterprise ResetPasswordTest class.

Defined (1)

The class is defined in the following location(s).

/lib/Force.com-Toolkit-for-PHP/unit_test/Lib/Test/Enterprise/ResetPasswordTest.php  
  1. class Lib_Test_Enterprise_ResetPasswordTest extends Lib_Test_TestAbstractEnterprise 
  2. public function getTestName() 
  3. return 'ResetPassword'; 
  4.  
  5. protected function _run() 
  6. // Note: uncomment and run to get userId value.  
  7. // Create new user 
  8. /** $newUser = new stdClass(); 
  9. $newUser->Alias = 'Johny1';  
  10. $newUser->Email = 'test1@example.com';  
  11. $newUser->EmailEncodingKey = 'UTF-8';  
  12. $newUser->LanguageLocaleKey = 'en_US';  
  13. $newUser->LastName = 'Smith1';  
  14. $newUser->LocaleSidKey = 'en_US';  
  15. $newUser->ProfileId = '00et0000000qoV2AAI'; // standart user 
  16. $newUser->TimeZoneSidKey = 'America/Los_Angeles';  
  17. $newUser->Username = 'johnysmith1@example.com';  
  18. $newUser->UserPermissionsCallCenterAutoLogin = 0;  
  19. $newUser->UserPermissionsMarketingUser = 0;  
  20. $newUser->UserPermissionsOfflineUser = 0;  
  21. $newUser->CommunityNickname = 'johnyexamplecom1';  
  22.  
  23. $createResponse = $this->_mySforceConnection->create(array($newUser), 'User'); 
  24.  
  25. echo "**** Creating the following:\r\n"; 
  26. print_r($createResponse);*/ 
  27.  
  28. $new_password=$this->_mySforceConnection->resetPassword('005t0000000uonmAAA'); 
  29. print_r($new_password);