diff options
| author | Tristan Darricau <tristan.darricau@sensiolabs.com> | 2015-07-09 17:04:40 +0200 |
|---|---|---|
| committer | Tristan Darricau <tristan.darricau@sensiolabs.com> | 2015-07-13 22:41:14 +0200 |
| commit | fc34057f288c6b8c656a0ed1ac2cb5a86f86206d (patch) | |
| tree | e1fead9c675d649708d7540c3d6e4bbf9d97abd2 /tests/notification/manager_helper.php | |
| parent | f29b12e35397ef4a4996ea7d212f0ab5a7a1dba6 (diff) | |
| download | forums-fc34057f288c6b8c656a0ed1ac2cb5a86f86206d.tar forums-fc34057f288c6b8c656a0ed1ac2cb5a86f86206d.tar.gz forums-fc34057f288c6b8c656a0ed1ac2cb5a86f86206d.tar.bz2 forums-fc34057f288c6b8c656a0ed1ac2cb5a86f86206d.tar.xz forums-fc34057f288c6b8c656a0ed1ac2cb5a86f86206d.zip | |
[ticket/11444] Update tests and cleanup types/methods
PHPBB3-11444
Diffstat (limited to 'tests/notification/manager_helper.php')
| -rw-r--r-- | tests/notification/manager_helper.php | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/tests/notification/manager_helper.php b/tests/notification/manager_helper.php index 40cf9b3ad4..2e8699e1e0 100644 --- a/tests/notification/manager_helper.php +++ b/tests/notification/manager_helper.php @@ -37,41 +37,4 @@ class phpbb_notification_manager_helper extends \phpbb\notification\manager $this->auth = $auth; $this->config = $config; } - - /** - * Helper to get the notifications item type class and set it up - */ - public function get_item_type_class($item_type, $data = array()) - { - $item_parts = explode('.', $item_type); - $item_type = 'phpbb\notification\type\\' . array_pop($item_parts); - - $item = new $item_type($this->user_loader, $this->db, $this->cache->get_driver(), $this->user, $this->auth, $this->config, $this->phpbb_root_path, $this->php_ext, $this->notification_types_table, $this->user_notifications_table); - - if ($item_type === 'phpbb\\notification\\type\\quote') - { - $item->set_utils(new \phpbb\textformatter\s9e\utils); - } - - $item->set_notification_manager($this); - - $item->set_initial_data($data); - - return $item; - } - - /** - * Helper to get the notifications method class and set it up - */ - public function get_method_class($method_name) - { - $method_parts = explode('.', $method_name); - $method_name = 'phpbb\notification\method\\' . array_pop($method_parts); - - $method = new $method_name($this->user_loader, $this->db, $this->cache->get_driver(), $this->user, $this->auth, $this->config, $this->phpbb_root_path, $this->php_ext, $this->notification_types_table, NOTIFICATIONS_TABLE, $this->user_notifications_table); - - $method->set_notification_manager($this); - - return $method; - } } |
