aboutsummaryrefslogtreecommitdiffstats
path: root/tests/notification
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2013-03-25 14:37:22 +0100
committerJoas Schilling <nickvergessen@gmx.de>2013-03-25 14:37:22 +0100
commit7d5949ae3d2faba5dc76c3d355e73b5abaa8e6c1 (patch)
treea8c63378948f91629014d5f0957b7e04efdc02da /tests/notification
parenta91ffe06c79dd067162fe3d659be44382a20df0e (diff)
downloadforums-7d5949ae3d2faba5dc76c3d355e73b5abaa8e6c1.tar
forums-7d5949ae3d2faba5dc76c3d355e73b5abaa8e6c1.tar.gz
forums-7d5949ae3d2faba5dc76c3d355e73b5abaa8e6c1.tar.bz2
forums-7d5949ae3d2faba5dc76c3d355e73b5abaa8e6c1.tar.xz
forums-7d5949ae3d2faba5dc76c3d355e73b5abaa8e6c1.zip
[ticket/11405] Fix some coding style issues
PHPBB3-11405
Diffstat (limited to 'tests/notification')
-rw-r--r--tests/notification/submit_post_notifications_test.php17
1 files changed, 10 insertions, 7 deletions
diff --git a/tests/notification/submit_post_notifications_test.php b/tests/notification/submit_post_notifications_test.php
index 3dfb948ca9..6b61624481 100644
--- a/tests/notification/submit_post_notifications_test.php
+++ b/tests/notification/submit_post_notifications_test.php
@@ -53,12 +53,12 @@ class phpbb_notification_submit_post_notifications_test extends phpbb_database_t
$this->greaterThan(0))
->will($this->returnValueMap(array(
array(
- array('3', '4', '5', '6', '7', '8',),
+ array('3', '4', '5', '6', '7', '8'),
'f_read',
1,
array(
1 => array(
- 'f_read' => array(3, 5, 6, 7, 8,),
+ 'f_read' => array(3, 5, 6, 7, 8),
),
),
),
@@ -113,6 +113,9 @@ class phpbb_notification_submit_post_notifications_test extends phpbb_database_t
/**
* submit_post() Notifications test
*
+ * submit_post() $mode = 'reply'
+ * Notification item_type = 'post'
+ *
* User => State description
* 2 => Poster, should NOT receive a notification
* 3 => Topic subscribed, should receive a notification
@@ -162,11 +165,11 @@ class phpbb_notification_submit_post_notifications_test extends phpbb_database_t
ORDER BY user_id ASC, item_id ASC";
$result = $this->db->sql_query($sql);
$this->assertEquals(array(
- array('user_id' => 3, 'item_id' => 1, 'item_parent_id' => 1,),
- array('user_id' => 5, 'item_id' => 1, 'item_parent_id' => 1,),
- array('user_id' => 6, 'item_id' => 1, 'item_parent_id' => 1,),
- array('user_id' => 7, 'item_id' => 1, 'item_parent_id' => 1,),
- array('user_id' => 8, 'item_id' => 1, 'item_parent_id' => 1,),
+ array('user_id' => 3, 'item_id' => 1, 'item_parent_id' => 1),
+ array('user_id' => 5, 'item_id' => 1, 'item_parent_id' => 1),
+ array('user_id' => 6, 'item_id' => 1, 'item_parent_id' => 1),
+ array('user_id' => 7, 'item_id' => 1, 'item_parent_id' => 1),
+ array('user_id' => 8, 'item_id' => 1, 'item_parent_id' => 1),
), $this->db->sql_fetchrowset($result));
$this->db->sql_freeresult($result);
}