Lib_Test_Partner_AssigmentRuleHeaderTest

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

Defined (1)

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

/lib/Force.com-Toolkit-for-PHP/unit_test/Lib/Test/Partner/AssigmentRuleHeaderTest.php  
  1. class Lib_Test_Partner_AssigmentRuleHeaderTest extends Lib_Test_TestAbstractPartner 
  2. public function getTestName() 
  3. return 'AssigmentRuleHeader'; 
  4.  
  5. protected function _run() 
  6. $header = new AssignmentRuleHeader('01Q300000005lDg', false); 
  7. $this->_mySforceConnection->setAssignmentRuleHeader($header); 
  8.  
  9. $createFields = array ( 
  10. 'FirstName' => 'John',  
  11. 'LastName' => 'Doe',  
  12. 'Email' => 'johndoe@salesforce.com',  
  13. 'Company' => 'Some Company',  
  14. 'LeadSource' => 'PHPUnit2',  
  15. 'City' => 'Tokyo',  
  16. 'Country' => 'Japan' 
  17. ); 
  18. $sObject1 = new SObject(); 
  19. $sObject1->fields = $createFields; 
  20. $sObject1->type = 'Lead'; 
  21.  
  22. $createResponse = $this->_mySforceConnection->create(array($sObject1)); 
  23. print_r($createResponse);