Documentation

HookTest extends CiviEndToEndTestCase
in package

Class HookTest

Tags
group

e2e

Table of Contents

Methods

setUpBeforeClass()  : void
testSymfonyListener_names()  : void
This test ensures that CRM_Utils_Hook::invoke() dispatches via Symfony.
hookStub()  : mixed

Methods

testSymfonyListener_names()

This test ensures that CRM_Utils_Hook::invoke() dispatches via Symfony.

public testSymfonyListener_names() : void

This should be inaddition* to dispatching through the UF event system, although the mechanics depend on the UF, so that part has to be tested per-UF.

This uses the canonical form, CRM_Utils_Hook::invoke(string[] $names...)

hookStub()

private hookStub(mixed $names, array<string|int, mixed> &$a, stdClass $b) : mixed
Parameters
$names : mixed
$a : array<string|int, mixed>
$b : stdClass

        
On this page

Search results