You are here

public function AcsfMessageTest::testAcsfMessageResponseMissingResponse in Acquia Cloud Site Factory Connector 8

Same name and namespace in other branches
  1. 8.2 tests/AcsfMessageTest.php \AcsfMessageTest::testAcsfMessageResponseMissingResponse()

Tests that an exception is throw when response is missing.

File

tests/AcsfMessageTest.php, line 97
Provides PHPUnit tests for AcsfMessage.

Class

AcsfMessageTest
AcsfMessageTest.

Code

public function testAcsfMessageResponseMissingResponse() {
  $config = new AcsfConfigUnitTest('unit_test_site', 'unit_test_env');
  $this
    ->expectException(AcsfMessageMalformedResponseException::class);
  $message = new AcsfMessageUnitTestMissingResponse('TEST', 'unit_test_endpoint', [], $config);
  $message
    ->send();
}