diff options
| author | Tristan Darricau <github@nicofuma.fr> | 2014-08-17 14:43:17 +0200 |
|---|---|---|
| committer | Tristan Darricau <github@nicofuma.fr> | 2014-08-17 16:19:23 +0200 |
| commit | b18fe1203aafb41d8e9e18a776bf415fa060bf4b (patch) | |
| tree | 5a02491b9dbb08421a594c5651045e4a64073a57 /tests/notification/base.php | |
| parent | fe8096753566f4beb708e9070d8789eebdd1e70b (diff) | |
| download | forums-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/base.php')
| -rw-r--r-- | tests/notification/base.php | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/tests/notification/base.php b/tests/notification/base.php index bfa9d2a1a4..c97b7c24e2 100644 --- a/tests/notification/base.php +++ b/tests/notification/base.php @@ -21,21 +21,21 @@ abstract class phpbb_tests_notification_base extends phpbb_database_test_case { return array( 'test', - 'approve_post', - 'approve_topic', - 'bookmark', - 'disapprove_post', - 'disapprove_topic', - 'pm', - 'post', - 'post_in_queue', - 'quote', - 'report_pm', - 'report_pm_closed', - 'report_post', - 'report_post_closed', - 'topic', - 'topic_in_queue', + 'notification.type.approve_post', + 'notification.type.approve_topic', + 'notification.type.bookmark', + 'notification.type.disapprove_post', + 'notification.type.disapprove_topic', + 'notification.type.pm', + 'notification.type.post', + 'notification.type.post_in_queue', + 'notification.type.quote', + 'notification.type.report_pm', + 'notification.type.report_pm_closed', + 'notification.type.report_post', + 'notification.type.report_post_closed', + 'notification.type.topic', + 'notification.type.topic_in_queue', ); } @@ -92,10 +92,11 @@ abstract class phpbb_tests_notification_base extends phpbb_database_test_case $types = array(); foreach ($this->get_notification_types() as $type) { - $class = $this->build_type('phpbb\notification\type\\' . $type); + $type_parts = explode('.', $type); + $class = $this->build_type('phpbb\notification\type\\' . array_pop($type_parts)); $types[$type] = $class; - $this->container->set('notification.type.' . $type, $class); + $this->container->set($type, $class); } $this->notifications->set_var('notification_types', $types); |
