You are here

AcsfMessageResponseUnitTest.inc in Acquia Cloud Site Factory Connector 8.2

Same filename and directory in other branches
  1. 8 tests/AcsfMessageResponseUnitTest.inc

File

tests/AcsfMessageResponseUnitTest.inc
View source
<?php

use Drupal\acsf\AcsfMessageResponse;

/**
 * This simple interface defines the way that responses are constructed.
 */
class AcsfMessageResponseUnitTest extends AcsfMessageResponse {

  /**
   * Determines whether the test failed.
   *
   * @return bool
   *   Whether the test failed.
   */
  public function failed() {
    if ($this->code) {
      return TRUE;
    }
    return FALSE;
  }

}

Classes

Namesort descending Description
AcsfMessageResponseUnitTest This simple interface defines the way that responses are constructed.