From b831e96aafc4b8c2bc883dd47c4f2452f329e5b2 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 18 Apr 2014 02:08:23 +0200 Subject: [ticket/12273] Use class properties instead of parameters PHPBB3-12273 --- tests/event/fixtures/duplicate_event.test | 26 ++++++++++++++++++++++++++ tests/event/fixtures/missing_var.test | 1 - 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 tests/event/fixtures/duplicate_event.test (limited to 'tests/event/fixtures') 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 @@ +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'); -- cgit v1.2.1