OAuthTestMocksCommonServiceMock

The Gravity Forms Salesforce Add-On OAuthTest Mocks Common Service Mock class.

Defined (1)

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

/lib/PHPoAuthLib/tests/Mocks/Common/Service/Mock.php  
  1. class Mock extends AbstractService 
  2. /** 
  3. * Sends an authenticated API request to the path provided. 
  4. * If the path provided is not an absolute URI, the base API Uri (service-specific) will be used. 
  5. * @param string|UriInterface $path 
  6. * @param string $method HTTP method 
  7. * @param array $body Request body if applicable (an associative array will 
  8. * automatically be converted into a urlencoded body) 
  9. * @param array $extraHeaders Extra headers if applicable. These will override service-specific 
  10. * any defaults. 
  11. * @return string 
  12. */ 
  13. public function request($path, $method = 'GET', $body = null, array $extraHeaders = array()) 
  14.  
  15. /** 
  16. * Returns the url to redirect to for authorization purposes. 
  17. * @param array $additionalParameters 
  18. * @return UriInterface 
  19. */ 
  20. public function getAuthorizationUri(array $additionalParameters = array()) 
  21.  
  22. /** 
  23. * Returns the authorization API endpoint. 
  24. * @return UriInterface 
  25. */ 
  26. public function getAuthorizationEndpoint() 
  27.  
  28. /** 
  29. * Returns the access token API endpoint. 
  30. * @return UriInterface 
  31. */ 
  32. public function getAccessTokenEndpoint() 
  33.  
  34. public function testDetermineRequestUriFromPath($path, UriInterface $baseApiUri = null) 
  35. return $this->determineRequestUriFromPath($path, $baseApiUri);