Lib_Test_Enterprise_AllowFieldTruncationHeaderTest

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

Defined (1)

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

/lib/Force.com-Toolkit-for-PHP/unit_test/Lib/Test/Enterprise/AllowFieldTruncationHeaderTest.php  
  1. class Lib_Test_Enterprise_AllowFieldTruncationHeaderTest extends Lib_Test_TestAbstractEnterprise 
  2. public function getTestName() 
  3. return 'AllowFieldTruncationHeader'; 
  4.  
  5. protected function _run() 
  6. $header = new AllowFieldTruncationHeader(true); 
  7. print_r($header); 
  8. $this->_mySforceConnection->setAllowFieldTruncationHeader($header); 
  9.  
  10. $sObject = new stdclass(); 
  11. $sObject->FirstName = 'Smith'; 
  12. $sObject->LastName = 'John'; 
  13. $sObject->Phone = '510-555-55551111111111111111111111111111111111111111111111111111111111111111111'; 
  14. $sObject->BirthDate = '1927-01-25'; 
  15.  
  16. echo "**** Creating the following:\r\n"; 
  17. print_r($this->_mySforceConnection->create(array($sObject), 'Contact')); 
  18.  
  19.  
  20. print "**** LastRequestHeaders:\r\n"; 
  21. print_r($this->_mySforceConnection->getLastRequestHeaders()); 
  22. print "**** LastRequest:\r\n"; 
  23. print_r($this->_mySforceConnection->getLastRequest());