1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[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
This commit is contained in:
Joas Schilling
2013-03-23 13:20:32 +01:00
parent b51a66b60b
commit bc5f8e30d0
2 changed files with 327 additions and 0 deletions

View File

@@ -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>