public function UnitTest::testAcsfEventExecute in Acquia Cloud Site Factory Connector 8.2
Same name and namespace in other branches
- 8 tests/AcsfEventsTest.php \UnitTest::testAcsfEventExecute()
Tests that events get run as expected.
File
- tests/
AcsfEventsTest.php, line 86 - Provides PHPUnit tests for the Acsf Events system.
Class
Code
public function testAcsfEventExecute() {
$registry = acsf_get_registry();
$event = new AcsfEvent(new AcsfEventDispatcher(), new AcsfLog(), 'unit_test', $registry, []);
$event
->run();
$debug = $event
->debug();
$this
->assertCount(3, $debug['handlers']['complete']);
}