You are here

public function AcsfMessageTest::testAcsfMessageConstructor in Acquia Cloud Site Factory Connector 8.2

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

Tests the AcsfMessage constructor parameters.

File

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

Class

AcsfMessageTest
AcsfMessageTest.

Code

public function testAcsfMessageConstructor() {
  $config = new AcsfConfigUnitTest('unit_test_site', 'unit_test_env');
  $message = new AcsfMessageUnitTestSuccess('TEST', 'unit_test_endpoint', [], $config);
  $this
    ->assertSame($message->method, 'TEST');
}