| Total Complexity | 2 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 2 | class Lib_Test_Partner_ResetPasswordTest extends Lib_Test_TestAbstractPartner |
||
| 3 | { |
||
| 4 | public function getTestName() |
||
| 5 | { |
||
| 6 | return 'ResetPassword'; |
||
| 7 | } |
||
| 8 | |||
| 9 | protected function _run() |
||
| 10 | { |
||
| 11 | // Note: uncomment and run to get userId value. |
||
| 12 | /* // Create new user |
||
| 13 | $values = array( |
||
| 14 | 'Alias' => 'Johny', |
||
| 15 | 'Email' => '[email protected]', |
||
| 16 | 'EmailEncodingKey' => 'UTF-8', |
||
| 17 | 'LanguageLocaleKey' => 'en_US', |
||
| 18 | 'LastName' => 'Smith', |
||
| 19 | 'LocaleSidKey' => 'en_US', |
||
| 20 | 'ProfileId' => '00et0000000qoV2AAI', // standart user |
||
| 21 | 'TimeZoneSidKey' => 'America/Los_Angeles', |
||
| 22 | 'Username' => '[email protected]', |
||
| 23 | 'UserPermissionsCallCenterAutoLogin' => 0, |
||
| 24 | 'UserPermissionsMarketingUser' => 0, |
||
| 25 | 'UserPermissionsOfflineUser' => 0, |
||
| 26 | // 'UserPermissionsWirelessUser' => 0, |
||
| 27 | 'CommunityNickname' => 'johnyexamplecom' |
||
| 28 | ); |
||
| 29 | |||
| 30 | $newUser = new SObject(); |
||
| 31 | $newUser->fields = $values; |
||
| 32 | $newUser->type = 'User'; |
||
| 33 | |||
| 34 | $createResponse = $this->_mySforceConnection->create(array($newUser)); |
||
| 35 | |||
| 36 | echo "**** Creating the following:\r\n"; |
||
| 37 | print_r($createResponse); |
||
| 38 | */ |
||
| 39 | |||
| 40 | $new_password=$this->_mySforceConnection->resetPassword('005t0000000uonmAAA'); |
||
| 41 | print_r($new_password); |
||
| 42 | } |
||
| 44 | } |