aboutsummaryrefslogtreecommitdiffstats
path: root/tests/notification/fixtures
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2013-03-23 13:20:32 +0100
committerJoas Schilling <nickvergessen@gmx.de>2013-03-23 13:20:32 +0100
commitbc5f8e30d09be1ded463b7d7a0e0d9b001de6b3b (patch)
tree292f64d65587e0b3be41de1b112aee1fc23e502d /tests/notification/fixtures
parentb51a66b60bffd0e4e07a7bd8db6532762c52678d (diff)
downloadforums-bc5f8e30d09be1ded463b7d7a0e0d9b001de6b3b.tar
forums-bc5f8e30d09be1ded463b7d7a0e0d9b001de6b3b.tar.gz
forums-bc5f8e30d09be1ded463b7d7a0e0d9b001de6b3b.tar.bz2
forums-bc5f8e30d09be1ded463b7d7a0e0d9b001de6b3b.tar.xz
forums-bc5f8e30d09be1ded463b7d7a0e0d9b001de6b3b.zip
[ticket/11405] Add some basic tests for notifications in submit_post()
Poster, should NOT receive a notification Topic subscribed, should receive a notification Topic subscribed, but unauthed to read, should NOT receive a notification Topic subscribed, but already notified, should NOT receive a new notification Topic and forum subscribed, should receive ONE notification Forum subscribed, should receive a notification Forum subscribed, but already notified, should NOT receive a new notification PHPBB3-11405
Diffstat (limited to 'tests/notification/fixtures')
-rw-r--r--tests/notification/fixtures/submit_post_notification.xml132
1 files changed, 132 insertions, 0 deletions
diff --git a/tests/notification/fixtures/submit_post_notification.xml b/tests/notification/fixtures/submit_post_notification.xml
new file mode 100644
index 0000000000..c082402056
--- /dev/null
+++ b/tests/notification/fixtures/submit_post_notification.xml
@@ -0,0 +1,132 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<dataset>
+ <table name="phpbb_forums_watch">
+ <column>forum_id</column>
+ <column>user_id</column>
+ <column>notify_status</column>
+ <row>
+ <value>1</value>
+ <value>6</value>
+ <value>0</value>
+ </row>
+ <row>
+ <value>1</value>
+ <value>7</value>
+ <value>0</value>
+ </row>
+ <row>
+ <value>1</value>
+ <value>8</value>
+ <value>0</value>
+ </row>
+ </table>
+ <table name="phpbb_notifications">
+ <column>item_type</column>
+ <column>user_id</column>
+ <column>item_id</column>
+ <column>item_parent_id</column>
+ <column>notification_data</column>
+ <row>
+ <value>post</value>
+ <value>5</value>
+ <value>1</value>
+ <value>1</value>
+ <value></value>
+ </row>
+ <row>
+ <value>post</value>
+ <value>8</value>
+ <value>1</value>
+ <value>1</value>
+ <value></value>
+ </row>
+ </table>
+ <table name="phpbb_posts">
+ </table>
+ <table name="phpbb_topics_watch">
+ <column>topic_id</column>
+ <column>user_id</column>
+ <column>notify_status</column>
+ <row>
+ <value>1</value>
+ <value>2</value>
+ <value>0</value>
+ </row>
+ <row>
+ <value>1</value>
+ <value>3</value>
+ <value>0</value>
+ </row>
+ <row>
+ <value>1</value>
+ <value>4</value>
+ <value>0</value>
+ </row>
+ <row>
+ <value>1</value>
+ <value>5</value>
+ <value>0</value>
+ </row>
+ <row>
+ <value>1</value>
+ <value>6</value>
+ <value>0</value>
+ </row>
+ </table>
+ <table name="phpbb_user_notifications">
+ <column>item_type</column>
+ <column>item_id</column>
+ <column>user_id</column>
+ <column>method</column>
+ <column>notify</column>
+ <row>
+ <value>post</value>
+ <value>0</value>
+ <value>2</value>
+ <value></value>
+ <value>1</value>
+ </row>
+ <row>
+ <value>post</value>
+ <value>0</value>
+ <value>3</value>
+ <value></value>
+ <value>1</value>
+ </row>
+ <row>
+ <value>post</value>
+ <value>0</value>
+ <value>4</value>
+ <value></value>
+ <value>1</value>
+ </row>
+ <row>
+ <value>post</value>
+ <value>0</value>
+ <value>5</value>
+ <value></value>
+ <value>1</value>
+ </row>
+ <row>
+ <value>post</value>
+ <value>0</value>
+ <value>6</value>
+ <value></value>
+ <value>1</value>
+ </row>
+ <row>
+ <value>post</value>
+ <value>0</value>
+ <value>7</value>
+ <value></value>
+ <value>1</value>
+ </row>
+ <row>
+ <value>post</value>
+ <value>0</value>
+ <value>8</value>
+ <value></value>
+ <value>1</value>
+ </row>
+ </table>
+</dataset>