Lib_Test_Enterprise_EmptyRecycleBinTest

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

Defined (1)

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

/lib/Force.com-Toolkit-for-PHP/unit_test/Lib/Test/Enterprise/EmptyRecycleBinTest.php  
  1. class Lib_Test_Enterprise_EmptyRecycleBinTest extends Lib_Test_TestAbstractEnterprise 
  2. public function getTestName() 
  3. return 'EmptyRecycleBin'; 
  4.  
  5. protected function _run() 
  6. $sObject = new stdclass(); 
  7. $sObject->Type='Electrical'; 
  8. $sObject->Status='New'; 
  9.  
  10. $response = $this->_mySforceConnection->create(array ($sObject), 'Case'); 
  11. echo "***** Creating Case *****\n"; 
  12. print_r($response); 
  13. $id = $response->id; 
  14. echo "***** Deleting Case *****\n"; 
  15. print_r($this->_mySforceConnection->delete(array($id))); 
  16. echo "***** Emptying Recycle Bin *****\n"; 
  17. print_r($this->_mySforceConnection->emptyRecycleBin(array($id)));