diff options
author | Oliver Schramm <oliver.schramm97@gmail.com> | 2017-10-04 20:12:34 +0200 |
---|---|---|
committer | Oliver Schramm <oliver.schramm97@gmail.com> | 2017-10-04 20:12:34 +0200 |
commit | 6c04a6715c08c1e224aeea8c4889c0258a832524 (patch) | |
tree | 9cf3cf0f0ee549e3d485964dd91fc4a2d9005d43 /tests/event/fixtures | |
parent | f788b7384b14914d38788a1ff8b9e35384206aff (diff) | |
download | forums-6c04a6715c08c1e224aeea8c4889c0258a832524.tar forums-6c04a6715c08c1e224aeea8c4889c0258a832524.tar.gz forums-6c04a6715c08c1e224aeea8c4889c0258a832524.tar.bz2 forums-6c04a6715c08c1e224aeea8c4889c0258a832524.tar.xz forums-6c04a6715c08c1e224aeea8c4889c0258a832524.zip |
[ticket/15389] Match multiple events in dispatcher in php_exporter
I've also improved some regular expressions
PHPBB3-15389
Diffstat (limited to 'tests/event/fixtures')
-rw-r--r-- | tests/event/fixtures/event_migration.test | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/event/fixtures/event_migration.test b/tests/event/fixtures/event_migration.test new file mode 100644 index 0000000000..b2df9f95df --- /dev/null +++ b/tests/event/fixtures/event_migration.test @@ -0,0 +1,30 @@ +<?php + + /** + * Modify pm and sender data before it is assigned to the template + * + * @event core.ucp_pm_view_message + * @var mixed id Active module category (can be int or string) + * @var string mode Active module + * @var int folder_id ID of the folder the message is in + * @var int msg_id ID of the private message + * @var array folder Array with data of user's message folders + * @var array message_row Array with message data + * @var array cp_row Array with senders custom profile field data + * @var array msg_data Template array with message data + * @var array user_info User data of the sender + * @since 3.1.0-a1 + * @changed 3.1.6-RC1 Added user_info into event + */ + $vars = array( + 'id', + 'mode', + 'folder_id', + 'msg_id', + 'folder', + 'message_row', + 'cp_row', + 'msg_data', + 'user_info', + ); + extract($phpbb_dispatcher->trigger_event(['core.ucp_pm_view_message', 'core.ucp_pm_view_messsage'], compact($vars))); |