You are here

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

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

Tests that the AcsfMessageFailureException exception is thrown.

File

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

Class

AcsfMessageTest
AcsfMessageTest.

Code

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