You are here

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

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

Tests that the config object must be an instance of AcsfConfig.

File

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

Class

AcsfMessageTest
AcsfMessageTest.

Code

public function testAcsfMessageConfigCompatible() {

  // Provide a compatible config object to check that no error is generated.
  // This isn't very precise since any error would make this test fail.
  $config = new AcsfConfigUnitTest('unit_test_site', 'unit_test_env');
  $this
    ->assertTrue(is_subclass_of($config, '\\Drupal\\acsf\\AcsfConfig'));
  $message = new AcsfMessageUnitTestSuccess('TEST', 'unit_test_endpoint', [], $config);
}