Lib_Test_Enterprise_PackageVersionHeaderTest

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

Defined (1)

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

/lib/Force.com-Toolkit-for-PHP/unit_test/Lib/Test/Enterprise/PackageVersionHeaderTest.php  
  1. class Lib_Test_Enterprise_PackageVersionHeaderTest extends Lib_Test_TestAbstractEnterprise 
  2. public function getTestName() 
  3. return 'PackageVersionHeader'; 
  4.  
  5. protected function _run() 
  6. $pv = new stdClass(); 
  7. $pv->majorNumber = 2; 
  8. $pv->minorNumber = 1; 
  9. $pv->namespace = SforceEnterpriseClient::ENTERPRISE_NAMESPACE; 
  10. $header = new PackageVersionHeader( 
  11. array($pv) 
  12. ); 
  13. print_r($header); 
  14. $this->_mySforceConnection->setPackageVersionHeader($header); 
  15.  
  16. $sObject = new stdclass(); 
  17. $sObject->FirstName = 'Smith'; 
  18. $sObject->LastName = 'John'; 
  19. $sObject->Phone = '510-555-5555'; 
  20. $sObject->BirthDate = '1927-01-25'; 
  21.  
  22. $createResponse = $this->_mySforceConnection->create(array($sObject), 'Contact'); 
  23. echo "**** Creating the following:\r\n"; 
  24. print_r($createResponse); 
  25.  
  26. print "**** LastRequestHeaders:\r\n"; 
  27. print_r($this->_mySforceConnection->getLastRequestHeaders()); 
  28. print "**** LastRequest:\r\n"; 
  29. print_r($this->_mySforceConnection->getLastRequest());