private $hookableEventCollector;
protected function setUp(): void
{ $this->hookableEventCollector =
$this->
getContainer()->
get(HookableEventCollector::
class);
} public function testGetHookableEventNamesWithPrivileges(): void
{ $hookableEventNamesWithPrivileges =
$this->hookableEventCollector->
getHookableEventNamesWithPrivileges(Context::
createDefaultContext());
static::
assertNotEmpty($hookableEventNamesWithPrivileges);
foreach ($hookableEventNamesWithPrivileges as $key =>
$hookableEventNamesWithPrivilege) { static::
assertIsArray($hookableEventNamesWithPrivilege);
static::
assertIsString($key);
static::
assertArrayHasKey('privileges',
$hookableEventNamesWithPrivilege);
} }}