Lib_Test_Partner_EmailHeaderTest

The Gravity Forms Salesforce Add-On Lib Test Partner EmailHeaderTest class.

Defined (1)

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

/lib/Force.com-Toolkit-for-PHP/unit_test/Lib/Test/Partner/EmailHeaderTest.php  
  1. class Lib_Test_Partner_EmailHeaderTest extends Lib_Test_TestAbstractPartner 
  2. public function getTestName() 
  3. return 'EmailHeader'; 
  4.  
  5. protected function _run() 
  6. // TODO test 
  7. $EMAILIDFORHEADER = 'myw.php.andrey@gmail.com'; 
  8.  
  9. $header = new EmailHeader(true, false, false); 
  10. $this->_mySforceConnection->setEmailHeader($header); 
  11.  
  12. $createFields = array ( 
  13. 'FirstName' => 'Nick',  
  14. 'LastName' => 'Tran',  
  15. 'Email' => $EMAILIDFORHEADER,  
  16. 'Company' => 'DELETE_ME Company',  
  17. 'LeadSource' => 'PHPUnit',  
  18. 'City' => 'Tokyo',  
  19. 'Country' => 'Japan' 
  20. ); 
  21. $sObject1 = new SObject(); 
  22. $sObject1->fields = $createFields; 
  23. $sObject1->type = 'Lead'; 
  24.  
  25. $createResponse = $this->_mySforceConnection->create(array($sObject1)); 
  26.  
  27. print_r($createResponse);