aboutsummaryrefslogtreecommitdiffstats
path: root/tests/notification/manager_helper.php
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2014-08-17 14:43:17 +0200
committerTristan Darricau <github@nicofuma.fr>2014-08-17 16:19:23 +0200
commitb18fe1203aafb41d8e9e18a776bf415fa060bf4b (patch)
tree5a02491b9dbb08421a594c5651045e4a64073a57 /tests/notification/manager_helper.php
parentfe8096753566f4beb708e9070d8789eebdd1e70b (diff)
downloadforums-b18fe1203aafb41d8e9e18a776bf415fa060bf4b.tar
forums-b18fe1203aafb41d8e9e18a776bf415fa060bf4b.tar.gz
forums-b18fe1203aafb41d8e9e18a776bf415fa060bf4b.tar.bz2
forums-b18fe1203aafb41d8e9e18a776bf415fa060bf4b.tar.xz
forums-b18fe1203aafb41d8e9e18a776bf415fa060bf4b.zip
[ticket/12990] Fix unit tests
PHPBB3-12990
Diffstat (limited to 'tests/notification/manager_helper.php')
-rw-r--r--tests/notification/manager_helper.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/notification/manager_helper.php b/tests/notification/manager_helper.php
index 24030f5775..75b7275d3a 100644
--- a/tests/notification/manager_helper.php
+++ b/tests/notification/manager_helper.php
@@ -43,7 +43,8 @@ class phpbb_notification_manager_helper extends \phpbb\notification\manager
*/
public function get_item_type_class($item_type, $data = array())
{
- $item_type = 'phpbb\notification\type\\' . $item_type;
+ $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->notifications_table, $this->user_notifications_table);