Lib_Test_TestAbstractPartner

The Gravity Forms Salesforce Add-On Lib Test TestAbstractPartner class.

Defined (1)

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

/lib/Force.com-Toolkit-for-PHP/unit_test/Lib/Test/TestAbstractPartner.php  
  1. abstract class Lib_Test_TestAbstractPartner extends Lib_Test_TestAbstract 
  2. protected $_wsdlName = 'partner'; 
  3. protected $_wsdlVersion = '20'; 
  4.  
  5. public function __construct($soapDir) 
  6. parent::__construct($soapDir); 
  7. require_once ($this->_soapDir . '/SforcePartnerClient.php'); 
  8. require_once ($this->_soapDir . '/SforceHeaderOptions.php'); 
  9. require_once ($this->_soapDir . '/SforceMetadataClient.php'); 
  10.  
  11. $this->_mySforceConnection = new SforcePartnerClient(); 
  12. $this->_mySoapClient = $this->_mySforceConnection->createConnection($this->getWSDL()); 
  13. $this->_mylogin = $this->_mySforceConnection->login($this->_userName, $this->_password); 
  14.  
  15. $_SESSION['location'] = $this->_mySforceConnection->getLocation(); 
  16. $_SESSION['sessionId'] = $this->_mySforceConnection->getSessionId(); 
  17. $_SESSION['wsdl'] = $this->getWSDL(); 
  18.  
  19. public function getWSDLName() { 
  20. return $this->_wsdlName; 
  21.  
  22. public function getWSDLVersion() 
  23. return $this->_wsdlVersion; 
  24.  
  25. public function getWSDL() { 
  26. return "{$this->_soapDir}/{$this->_wsdlName}{$this->_wsdlVersion}.wsdl.xml";