Lib_Test_Enterprise_InvalidateSessionsTest

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

Defined (1)

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

/lib/Force.com-Toolkit-for-PHP/unit_test/Lib/Test/Enterprise/InvalidateSessionsTest.php  
  1. class Lib_Test_Enterprise_InvalidateSessionsTest extends Lib_Test_TestAbstractEnterprise 
  2. public function getTestName() 
  3. return 'InvalidateSessions'; 
  4.  
  5. protected function _run() 
  6. $response = $this->_mySforceConnection->getUserInfo(); 
  7. print_r($response); 
  8.  
  9. $mylogout = $this->_mySforceConnection->invalidateSessions(); 
  10. print_r($mylogout); 
  11.  
  12. $response = $this->_mySforceConnection->getUserInfo(); 
  13. print_r($response); 
  14.  
  15. /** 
  16. * @param string $rs 
  17. * @return void 
  18. * @throws Lib_Exception_InvalidResponse 
  19. */ 
  20. protected function _validateSoapFault($rs) 
  21. if(strpos($rs, 'INVALID_SESSION_ID') === FALSE) { 
  22. throw new Lib_Exception_InvalidResponse();