Lib_Test_Enterprise_LoginScopeHeaderTest

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

Defined (1)

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

/lib/Force.com-Toolkit-for-PHP/unit_test/Lib/Test/Enterprise/LoginScopeHeaderTest.php  
  1. class Lib_Test_Enterprise_LoginScopeHeaderTest extends Lib_Test_TestAbstractEnterprise 
  2. public function getTestName() 
  3. return 'LoginScopeHeader'; 
  4.  
  5. protected function _run() 
  6. echo "***** Get User Info*****\n"; 
  7. $response = $this->_mySforceConnection->getUserInfo(); 
  8. print_r($response); 
  9.  
  10. $this->_mySforceConnection = new SforceEnterpriseClient(); 
  11. $mySoapClient = $this->_mySforceConnection->createConnection($this->getWSDL()); 
  12. // $header = new LoginScopeHeader($response->organizationId, $this->_portalId); 
  13.  
  14. $header = new LoginScopeHeader(NULL, $this->_portalId); 
  15. $this->_mySforceConnection->setLoginScopeHeader($header); 
  16. $mylogin = $this->_mySforceConnection->login($this->_userName, $this->_password); 
  17.  
  18. print_r($mylogin); 
  19. print_r($this->_mySforceConnection->getServerTimestamp());