diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-04-18 02:08:23 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-04-18 12:56:59 +0200 |
commit | b831e96aafc4b8c2bc883dd47c4f2452f329e5b2 (patch) | |
tree | 92f86c5f8a4ddb0587ff37e9ded9fcb070b87e4e /tests/event/fixtures | |
parent | 91deb4419b3f7c93288e969cf97fb9e1541c2ecf (diff) | |
download | forums-b831e96aafc4b8c2bc883dd47c4f2452f329e5b2.tar forums-b831e96aafc4b8c2bc883dd47c4f2452f329e5b2.tar.gz forums-b831e96aafc4b8c2bc883dd47c4f2452f329e5b2.tar.bz2 forums-b831e96aafc4b8c2bc883dd47c4f2452f329e5b2.tar.xz forums-b831e96aafc4b8c2bc883dd47c4f2452f329e5b2.zip |
[ticket/12273] Use class properties instead of parameters
PHPBB3-12273
Diffstat (limited to 'tests/event/fixtures')
-rw-r--r-- | tests/event/fixtures/duplicate_event.test | 26 | ||||
-rw-r--r-- | tests/event/fixtures/missing_var.test | 1 |
2 files changed, 26 insertions, 1 deletions
diff --git a/tests/event/fixtures/duplicate_event.test b/tests/event/fixtures/duplicate_event.test new file mode 100644 index 0000000000..f5fa580c2b --- /dev/null +++ b/tests/event/fixtures/duplicate_event.test @@ -0,0 +1,26 @@ +<?php + + /** + * Event after the post data has been assigned to the template + * + * @event duplicate.trigger + * @var int start Start item of this page + * @var int current_row_number Number of the post on this page + * @var int end Number of posts on this page + * @var array row Array with original post and user data + * @var array cp_row Custom profile field data of the poster + * @var array attachments List of attachments + * @var array user_poster_data Poster's data from user cache + * @var array post_row Template block array of the post + * @since 3.1.0-a3 + */ + $vars = array('start', 'current_row_number', 'end', 'row', 'cp_row', 'attachments', 'user_poster_data', 'post_row'); + extract($phpbb_dispatcher->trigger_event('duplicate.trigger', compact($vars))); + + /** + * Event after the post data has been assigned to the template + * + * @event duplicate.trigger + * @since 3.1.0-b1 + */ + $phpbb_dispatcher->dispatch('duplicate.trigger'); diff --git a/tests/event/fixtures/missing_var.test b/tests/event/fixtures/missing_var.test index 9df6e5b386..7ced5e93dc 100644 --- a/tests/event/fixtures/missing_var.test +++ b/tests/event/fixtures/missing_var.test @@ -11,7 +11,6 @@ * @var array cp_row Custom profile field data of the poster * @var array attachments List of attachments * @var array user_poster_data Poster's data from user cache - * @var array post_row Template block array of the post * @since 3.1.0-a3 */ $vars = array('start', 'current_row_number', 'end', 'row', 'cp_row', 'attachments', 'user_poster_data', 'post_row'); |