AcsfMessageUnitTestSuccess.inc in Acquia Cloud Site Factory Connector 8.2
File
tests/AcsfMessageUnitTestSuccess.inc
View source
<?php
use Drupal\acsf\AcsfMessage;
class AcsfMessageUnitTestSuccess extends AcsfMessage {
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);
}
}