Passed
Pull Request — master (#195)
by Jonathan
03:35 queued 24s
created

Lib_Test_Partner_ResetPasswordTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 4
c 1
b 0
f 0
dl 0
loc 40
rs 10
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
	}
43
	
44
}