You are here

AcsfMessageUnitTestSuccess.inc in Acquia Cloud Site Factory Connector 8

Same filename and directory in other branches
  1. 8.2 tests/AcsfMessageUnitTestSuccess.inc

File

tests/AcsfMessageUnitTestSuccess.inc
View source
<?php

use Drupal\acsf\AcsfMessage;

/**
 * AcsfMessageUnitTestSuccess.
 */
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);
  }

}

Classes

Namesort descending Description
AcsfMessageUnitTestSuccess AcsfMessageUnitTestSuccess.