diff options
author | Nathan Guse <nathaniel.guse@gmail.com> | 2013-01-15 12:10:07 -0600 |
---|---|---|
committer | Nathan Guse <nathaniel.guse@gmail.com> | 2013-01-15 12:10:07 -0600 |
commit | 07282a30ae077825ea81a4e26839ac0473dc97b7 (patch) | |
tree | 9599fa8903e9c39498dc6bb06e0346f484f68932 /tests/notification | |
parent | 51e0f002eeaf2d55a63feee66ccb37d689f46f55 (diff) | |
download | forums-07282a30ae077825ea81a4e26839ac0473dc97b7.tar forums-07282a30ae077825ea81a4e26839ac0473dc97b7.tar.gz forums-07282a30ae077825ea81a4e26839ac0473dc97b7.tar.bz2 forums-07282a30ae077825ea81a4e26839ac0473dc97b7.tar.xz forums-07282a30ae077825ea81a4e26839ac0473dc97b7.zip |
[ticket/11103] Fix some various issues, better comments
PHPBB3-11103
Diffstat (limited to 'tests/notification')
-rw-r--r-- | tests/notification/ext/test/notification/type/test.php | 4 | ||||
-rw-r--r-- | tests/notification/notification.php | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/tests/notification/ext/test/notification/type/test.php b/tests/notification/ext/test/notification/type/test.php index 45670e1c2d..0d0c584e0d 100644 --- a/tests/notification/ext/test/notification/type/test.php +++ b/tests/notification/ext/test/notification/type/test.php @@ -39,7 +39,7 @@ class phpbb_notification_type_test extends phpbb_notification_type_base public function create_insert_array($post, $pre_create_data = array()) { - $this->time = $post['post_time']; + $this->notification_time = $post['post_time']; return parent::create_insert_array($post, $pre_create_data); } @@ -51,7 +51,7 @@ class phpbb_notification_type_test extends phpbb_notification_type_base // Unset data unique to each row unset( $data['notification_id'], - $data['unread'], + $data['notification_read'], $data['user_id'] ); diff --git a/tests/notification/notification.php b/tests/notification/notification.php index cd2080bb4d..13c868a0c7 100644 --- a/tests/notification/notification.php +++ b/tests/notification/notification.php @@ -6,7 +6,7 @@ * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 * */ -//calls: [ [set_notification_manager, [@notification_manager]] ] + class phpbb_notification_test extends phpbb_database_test_case { protected $notifications, $db, $container, $user, $config, $auth, $cache; @@ -52,6 +52,7 @@ class phpbb_notification_test extends phpbb_database_test_case $this->user, $phpbb_root_path, $phpEx, + 'phpbb_notification_types', 'phpbb_notifications', 'phpbb_user_notifications' ); @@ -91,7 +92,7 @@ class phpbb_notification_test extends phpbb_database_test_case { global $phpbb_root_path, $phpEx; - return new $type($this->user_loader, $this->db, $this->cache, $this->user, $this->auth, $this->config, $phpbb_root_path, $phpEx, 'phpbb_notifications', 'phpbb_user_notifications'); + return new $type($this->user_loader, $this->db, $this->cache, $this->user, $this->auth, $this->config, $phpbb_root_path, $phpEx, 'phpbb_notification_types', 'phpbb_notifications', 'phpbb_user_notifications'); } public function test_get_subscription_types() |