Lib_Test_Partner_EmptyRecycleBinTest

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

Defined (1)

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

/lib/Force.com-Toolkit-for-PHP/unit_test/Lib/Test/Partner/EmptyRecycleBinTest.php  
  1. class Lib_Test_Partner_EmptyRecycleBinTest extends Lib_Test_TestAbstractPartner 
  2. public function getTestName() 
  3. return 'EmptyRecycleBin'; 
  4.  
  5. protected function _run() 
  6. $fields = array ( 
  7. 'Type' => 'Electrical' 
  8. ); 
  9.  
  10. $sObject = new SObject(); 
  11. $sObject->fields = $fields; 
  12. $sObject->type = 'Case'; 
  13.  
  14. $response = $this->_mySforceConnection->create(array ($sObject)); 
  15.  
  16. echo "Creating Case:\n"; 
  17. print_r($response); 
  18.  
  19. $id = $response->id; 
  20. echo "Deleting Case:\n"; 
  21. print_r($this->_mySforceConnection->delete(array($id))); 
  22. echo "Emptying Recycle Bin:\n"; 
  23. print_r($this->_mySforceConnection->emptyRecycleBin(array($id)));