aboutsummaryrefslogtreecommitdiffstats
path: root/tests/notification/ext
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2012-10-20 20:54:18 -0500
committerNathan Guse <nathaniel.guse@gmail.com>2012-10-20 20:58:53 -0500
commit94d682f77431add84867bb0b196ad0719b293606 (patch)
tree1a589cd8c2bd9ac054ea0394eaa8b240cfe7c030 /tests/notification/ext
parent6861af22eecfa4a254eb62245ee109d8e5635f93 (diff)
downloadforums-94d682f77431add84867bb0b196ad0719b293606.tar
forums-94d682f77431add84867bb0b196ad0719b293606.tar.gz
forums-94d682f77431add84867bb0b196ad0719b293606.tar.bz2
forums-94d682f77431add84867bb0b196ad0719b293606.tar.xz
forums-94d682f77431add84867bb0b196ad0719b293606.zip
[ticket/11103] Use the full class name as the item_type/method
This is going to require you recreate the db tables. PHPBB3-11103
Diffstat (limited to 'tests/notification/ext')
-rw-r--r--tests/notification/ext/test/notification/type/test.php30
1 files changed, 21 insertions, 9 deletions
diff --git a/tests/notification/ext/test/notification/type/test.php b/tests/notification/ext/test/notification/type/test.php
index f3aa8ba6f3..e76bdb5e0c 100644
--- a/tests/notification/ext/test/notification/type/test.php
+++ b/tests/notification/ext/test/notification/type/test.php
@@ -17,13 +17,6 @@ if (!defined('IN_PHPBB'))
class phpbb_ext_test_notification_type_test extends phpbb_notification_type_base
{
- public $email_template = 'topic_notify';
-
- public static function get_item_type()
- {
- return 'ext_test-test';
- }
-
public static function get_item_id($post)
{
return (int) $post['post_id'];
@@ -39,11 +32,25 @@ class phpbb_ext_test_notification_type_test extends phpbb_notification_type_base
return $this->_find_users_for_notification(0, $options);
}
- public function create_insert_array($post)
+ public function create_insert_array($post, $pre_create_data = array())
{
$this->time = $post['post_time'];
- return parent::create_insert_array($post);
+ return parent::create_insert_array($post, $pre_create_data);
+ }
+
+ public function create_update_array($type_data)
+ {
+ $data = $this->create_insert_array($type_data);
+
+ // Unset data unique to each row
+ unset(
+ $data['notification_id'],
+ $data['unread'],
+ $data['user_id']
+ );
+
+ return $data;
}
public function get_title()
@@ -61,6 +68,11 @@ class phpbb_ext_test_notification_type_test extends phpbb_notification_type_base
return '';
}
+ public function get_email_template()
+ {
+ return false;
+ }
+
public function get_email_template_variables()
{
return array();