Lib_Test_Enterprise_ProcessWorkItemRequestTest

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

Defined (1)

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

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