class AcsfMessageResponseUnitTest in Acquia Cloud Site Factory Connector 8
Same name and namespace in other branches
- 8.2 tests/AcsfMessageResponseUnitTest.inc \AcsfMessageResponseUnitTest
 
This simple interface defines the way that responses are constructed.
Hierarchy
- class \Drupal\acsf\AcsfMessageResponse
- class \AcsfMessageResponseUnitTest
 
 
Expanded class hierarchy of AcsfMessageResponseUnitTest
File
- tests/
AcsfMessageResponseUnitTest.inc, line 8  
View source
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;
  }
}Members
| 
            Name | 
                  Modifiers | Type | Description | Overrides | 
|---|---|---|---|---|
| 
            AcsfMessageResponse:: | 
                  public | property | The body of the response. | |
| 
            AcsfMessageResponse:: | 
                  public | property | The response code from the remote call. | |
| 
            AcsfMessageResponse:: | 
                  public | property | The endpoint on the remote service. | |
| 
            AcsfMessageResponse:: | 
                  public | function | Constructor. | |
| 
            AcsfMessageResponseUnitTest:: | 
                  public | function | 
            Determines whether the test failed. Overrides AcsfMessageResponse:: |