You are here

public function UnitTest::testAcsfEventCreate in Acquia Cloud Site Factory Connector 8.2

Same name and namespace in other branches
  1. 8 tests/AcsfEventsTest.php \UnitTest::testAcsfEventCreate()

Tests the create method.

File

tests/AcsfEventsTest.php, line 109
Provides PHPUnit tests for the Acsf Events system.

Class

UnitTest

Code

public function testAcsfEventCreate() {
  $event = AcsfEvent::create('unit_test', []);
  $event
    ->run();
  $debug = $event
    ->debug();
  $this
    ->assertCount(3, $debug['handlers']['complete']);
}