class AcsfMessageUnitTestSuccess in Acquia Cloud Site Factory Connector 8
Same name and namespace in other branches
- 8.2 tests/AcsfMessageUnitTestSuccess.inc \AcsfMessageUnitTestSuccess
AcsfMessageUnitTestSuccess.
Hierarchy
- class \Drupal\acsf\AcsfMessage
- class \AcsfMessageUnitTestSuccess
Expanded class hierarchy of AcsfMessageUnitTestSuccess
File
- tests/
AcsfMessageUnitTestSuccess.inc, line 8
View source
class AcsfMessageUnitTestSuccess extends AcsfMessage {
/**
* Implements AcsfMessage::sendMessage().
*/
protected function sendMessage($url, $method, $endpoint, array $parameters, $username, $password) {
$response = json_encode([
'url' => $url,
'method' => $method,
'endpoint' => $endpoint,
'parameters' => $parameters,
'username' => $username,
'password' => $password,
]);
return new AcsfMessageResponseUnitTest($endpoint, 0, $response);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AcsfMessage:: |
protected | property | An optional Acquia Hosting environment. | |
AcsfMessage:: |
protected | property | An optional Acquia Hosting sitegroup. | |
AcsfMessage:: |
private | property | An optional AcsfConfig object. | |
AcsfMessage:: |
protected | property | The message endpoint on the remote server. | |
AcsfMessage:: |
protected | property | An unstructured list of parameters to send with the request. | |
AcsfMessage:: |
protected | property | The AcsfMessageResponse object. | |
AcsfMessage:: |
public | function | Retrieves the response body. | |
AcsfMessage:: |
public | function | Retrieves the response code. | |
AcsfMessage:: |
protected | function | Allows client code to optionally run logic after the response is received. | |
AcsfMessage:: |
public | function | Sends the message to the remote server. | |
AcsfMessage:: |
public | function | Constructor. | 1 |
AcsfMessageUnitTestSuccess:: |
protected | function |
Implements AcsfMessage::sendMessage(). Overrides AcsfMessage:: |