Lib_Test_Partner_InvalidateSessionsTest

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

Defined (1)

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

/lib/Force.com-Toolkit-for-PHP/unit_test/Lib/Test/Partner/InvalidateSessionsTest.php  
  1. class Lib_Test_Partner_InvalidateSessionsTest extends Lib_Test_TestAbstractPartner 
  2. public function getTestName() 
  3. return 'InvalidateSessions'; 
  4.  
  5. protected function _run() 
  6. $response = $this->_mySforceConnection->getUserInfo(); 
  7. print "**** User info:\r\n"; 
  8. print_r($response); 
  9.  
  10. $mylogout = $this->_mySforceConnection->invalidateSessions(); 
  11. print "**** Invalidate sessions:\r\n"; 
  12. print_r($mylogout); 
  13.  
  14. $response = $this->_mySforceConnection->getUserInfo(); 
  15. print_r($response); 
  16. print "**** User info:\r\n"; 
  17. print_r($response); 
  18.  
  19. /** 
  20. * @param string $rs 
  21. * @return void 
  22. * @throws Lib_Exception_InvalidResponse 
  23. */ 
  24. protected function _validateSoapFault($rs) 
  25. if(strpos($rs, 'INVALID_SESSION_ID') === FALSE) { 
  26. throw new Lib_Exception_InvalidResponse();