aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathaniel Guse <nathaniel.guse@gmail.com>2013-07-26 17:27:52 -0500
committerNathaniel Guse <nathaniel.guse@gmail.com>2013-07-26 17:27:52 -0500
commit49c6e835605a6f36c050cda2e92646941668e415 (patch)
tree480d25dd76f369eee76ed7ca1eec6f46a6b43674 /tests/notification/group_request_test.php
parent[ticket/11744] spelling (diff)
downloadphpbb-49c6e835605a6f36c050cda2e92646941668e415.tar.gz
phpbb-49c6e835605a6f36c050cda2e92646941668e415.tar.bz2
phpbb-49c6e835605a6f36c050cda2e92646941668e415.zip
[ticket/11744] Fix tests for postgresql
PHPBB3-11744
Diffstat (limited to 'tests/notification/group_request_test.php')
-rw-r--r--tests/notification/group_request_test.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/notification/group_request_test.php b/tests/notification/group_request_test.php
index d36864cc27..d61c4adf38 100644
--- a/tests/notification/group_request_test.php
+++ b/tests/notification/group_request_test.php
@@ -65,7 +65,7 @@ class phpbb_notification_group_request_test extends phpbb_tests_notification_bas
));
$expected = array(
- 1 => array(
+ array(
'item_id' => 3, // user_id of requesting join
'item_parent_id' => $group_id,
'user_id' => 2,
@@ -78,16 +78,16 @@ class phpbb_notification_group_request_test extends phpbb_tests_notification_bas
$this->assertEquals(sizeof($expected), $notifications['unread_count']);
- $notifications = $notifications['notifications'];
-
- foreach ($expected as $notification_id => $notification_data)
+ $i = 0;
+ foreach ($notifications['notifications'] as $notification)
{
- $this->assertEquals($notification_id, $notifications[$notification_id]->notification_id, 'notification_id');
-
- foreach ($notification_data as $key => $value)
+ foreach ($expected[$i] as $notification_data)
{
- $this->assertEquals($value, $notifications[$notification_id]->$key, $key . ' ' . $notification_id);
+ $this->assertEquals($value, $notification->$key, $key . ' ' . $i);
}
+
+ $i++;
}
+
}
}