1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-08 01:36:57 +02:00

[ticket/16955] Update tests to support small changes to docblocks/types

PHPBB3-16955
This commit is contained in:
Marc Alexander
2022-12-26 14:57:11 +01:00
parent 1c02b1a7b5
commit d3d53cda0f
4 changed files with 11 additions and 21 deletions

View File

@@ -28,26 +28,26 @@ class test extends \phpbb\notification\type\base
return 'test';
}
public static function get_item_id($post)
public static function get_item_id($type_data)
{
return (int) $post['post_id'];
return (int) $type_data['post_id'];
}
public static function get_item_parent_id($post)
public static function get_item_parent_id($type_data)
{
return (int) $post['topic_id'];
return (int) $type_data['topic_id'];
}
public function find_users_for_notification($post, $options = array())
public function find_users_for_notification($type_data, $options = array())
{
return $this->check_user_notification_options(array(0), $options);
}
public function create_insert_array($post, $pre_create_data = array())
public function create_insert_array($type_data, $pre_create_data = array())
{
$this->notification_time = $post['post_time'];
$this->notification_time = $type_data['post_time'];
parent::create_insert_array($post, $pre_create_data);
parent::create_insert_array($type_data, $pre_create_data);
}
public function create_update_array($type_data)