Lib_Test_Partner_ProcessWorkItemRequestTest

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

Defined (1)

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

/lib/Force.com-Toolkit-for-PHP/unit_test/Lib/Test/Partner/ProcessWorkItemRequestTest.php  
  1. class Lib_Test_Partner_ProcessWorkItemRequestTest extends Lib_Test_TestAbstractPartner 
  2. public function getTestName() 
  3. return 'ProcessWorkItemRequest'; 
  4.  
  5. /** 
  6. * TODO Implement 
  7. */ 
  8. protected function _run() 
  9. // ProcessInstanceWorkitem 
  10. $WORKITEM = '00TA0000001q1K5'; 
  11.  
  12. $processWorkItem1 = new ProcessWorkitemRequest(); 
  13. $processWorkItem1->action = 'Approve'; 
  14. $processWorkItem1->workitemId = $WORKITEM; 
  15. $processWorkItem1->comments = "Request approved"; 
  16.  
  17. $processWorkItemRequestResponse = 
  18. $this->_mySforceConnection->processWorkitemRequest(array($processWorkItem1)); 
  19.  
  20. print_r($processWorkItemRequestResponse);