protected function AcsfMessageUnitTestSuccess::sendMessage in Acquia Cloud Site Factory Connector 8
Same name and namespace in other branches
- 8.2 tests/AcsfMessageUnitTestSuccess.inc \AcsfMessageUnitTestSuccess::sendMessage()
Implements AcsfMessage::sendMessage().
Overrides AcsfMessage::sendMessage
File
- tests/
AcsfMessageUnitTestSuccess.inc, line 13
Class
- AcsfMessageUnitTestSuccess
- AcsfMessageUnitTestSuccess.
Code
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);
}