1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-18 06:21:19 +02:00

[ticket/16544] Fix notifications tests

PHPBB3-16544
This commit is contained in:
rxu
2020-07-01 21:12:35 +07:00
parent aa76f6b9f2
commit 02f54ef219
8 changed files with 545 additions and 9 deletions

View File

@@ -56,6 +56,11 @@
<value>notification.type.post</value>
<value>1</value>
</row>
<row>
<value>2</value>
<value>notification.type.forum</value>
<value>1</value>
</row>
</table>
<table name="phpbb_posts">
<column>post_id</column>
@@ -213,5 +218,54 @@
<value>notification.method.email</value>
<value>1</value>
</row>
<row>
<value>notification.type.forum</value>
<value>0</value>
<value>2</value>
<value>notification.method.email</value>
<value>1</value>
</row>
<row>
<value>notification.type.forum</value>
<value>0</value>
<value>3</value>
<value>notification.method.email</value>
<value>1</value>
</row>
<row>
<value>notification.type.forum</value>
<value>0</value>
<value>4</value>
<value>notification.method.email</value>
<value>1</value>
</row>
<row>
<value>notification.type.forum</value>
<value>0</value>
<value>5</value>
<value>notification.method.email</value>
<value>1</value>
</row>
<row>
<value>notification.type.forum</value>
<value>0</value>
<value>6</value>
<value>notification.method.email</value>
<value>1</value>
</row>
<row>
<value>notification.type.forum</value>
<value>0</value>
<value>7</value>
<value>notification.method.email</value>
<value>1</value>
</row>
<row>
<value>notification.type.forum</value>
<value>0</value>
<value>8</value>
<value>notification.method.email</value>
<value>1</value>
</row>
</table>
</dataset>

View File

@@ -0,0 +1,262 @@
<?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>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_notifications">
<column>notification_id</column>
<column>notification_type_id</column>
<column>user_id</column>
<column>item_id</column>
<column>item_parent_id</column>
<column>notification_read</column>
<column>notification_data</column>
<row>
<value>1</value>
<value>1</value>
<value>5</value>
<value>1</value>
<value>1</value>
<value>0</value>
<value></value>
</row>
<row>
<value>2</value>
<value>1</value>
<value>8</value>
<value>1</value>
<value>1</value>
<value>0</value>
<value></value>
</row>
</table>
<table name="phpbb_notification_types">
<column>notification_type_id</column>
<column>notification_type_name</column>
<column>notification_type_enabled</column>
<row>
<value>1</value>
<value>notification.type.forum</value>
<value>1</value>
</row>
<row>
<value>2</value>
<value>notification.type.post</value>
<value>1</value>
</row>
</table>
<table name="phpbb_posts">
<column>post_id</column>
<column>topic_id</column>
<column>forum_id</column>
<column>post_text</column>
<row>
<value>1</value>
<value>1</value>
<value>1</value>
<value></value>
</row>
</table>
<table name="phpbb_topics">
<column>topic_id</column>
<column>forum_id</column>
<row>
<value>1</value>
<value>1</value>
</row>
</table>
<table name="phpbb_topics_watch">
<column>topic_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_users">
<column>user_id</column>
<column>username_clean</column>
<column>user_permissions</column>
<column>user_sig</column>
<row>
<value>2</value>
<value>poster</value>
<value></value>
<value></value>
</row>
<row>
<value>3</value>
<value>test</value>
<value></value>
<value></value>
</row>
<row>
<value>4</value>
<value>unauthorized</value>
<value></value>
<value></value>
</row>
<row>
<value>5</value>
<value>notified</value>
<value></value>
<value></value>
</row>
<row>
<value>6</value>
<value>disabled</value>
<value></value>
<value></value>
</row>
<row>
<value>7</value>
<value>default</value>
<value></value>
<value></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>notification.type.post</value>
<value>0</value>
<value>2</value>
<value>notification.method.board</value>
<value>1</value>
</row>
<row>
<value>notification.type.post</value>
<value>0</value>
<value>3</value>
<value>notification.method.board</value>
<value>1</value>
</row>
<row>
<value>notification.type.post</value>
<value>0</value>
<value>4</value>
<value>notification.method.board</value>
<value>1</value>
</row>
<row>
<value>notification.type.post</value>
<value>0</value>
<value>5</value>
<value>notification.method.board</value>
<value>1</value>
</row>
<row>
<value>notification.type.post</value>
<value>0</value>
<value>6</value>
<value>notification.method.board</value>
<value>1</value>
</row>
<row>
<value>notification.type.post</value>
<value>0</value>
<value>7</value>
<value>notification.method.board</value>
<value>1</value>
</row>
<row>
<value>notification.type.post</value>
<value>0</value>
<value>8</value>
<value>notification.method.board</value>
<value>1</value>
</row>
<row>
<value>notification.type.forum</value>
<value>0</value>
<value>2</value>
<value>notification.method.board</value>
<value>1</value>
</row>
<row>
<value>notification.type.forum</value>
<value>0</value>
<value>3</value>
<value>notification.method.board</value>
<value>1</value>
</row>
<row>
<value>notification.type.forum</value>
<value>0</value>
<value>4</value>
<value>notification.method.board</value>
<value>1</value>
</row>
<row>
<value>notification.type.forum</value>
<value>0</value>
<value>5</value>
<value>notification.method.board</value>
<value>1</value>
</row>
<row>
<value>notification.type.forum</value>
<value>0</value>
<value>6</value>
<value>notification.method.board</value>
<value>1</value>
</row>
<row>
<value>notification.type.forum</value>
<value>0</value>
<value>7</value>
<value>notification.method.board</value>
<value>1</value>
</row>
<row>
<value>notification.type.forum</value>
<value>0</value>
<value>8</value>
<value>notification.method.board</value>
<value>1</value>
</row>
</table>
</dataset>

View File

@@ -56,6 +56,11 @@
<value>notification.type.post</value>
<value>1</value>
</row>
<row>
<value>2</value>
<value>notification.type.forum</value>
<value>1</value>
</row>
</table>
<table name="phpbb_posts">
<column>post_id</column>
@@ -204,5 +209,54 @@
<value>notification.method.board</value>
<value>1</value>
</row>
<row>
<value>notification.type.forum</value>
<value>0</value>
<value>2</value>
<value>notification.method.board</value>
<value>1</value>
</row>
<row>
<value>notification.type.forum</value>
<value>0</value>
<value>3</value>
<value>notification.method.board</value>
<value>1</value>
</row>
<row>
<value>notification.type.forum</value>
<value>0</value>
<value>4</value>
<value>notification.method.board</value>
<value>1</value>
</row>
<row>
<value>notification.type.forum</value>
<value>0</value>
<value>5</value>
<value>notification.method.board</value>
<value>1</value>
</row>
<row>
<value>notification.type.forum</value>
<value>0</value>
<value>6</value>
<value>notification.method.board</value>
<value>1</value>
</row>
<row>
<value>notification.type.forum</value>
<value>0</value>
<value>7</value>
<value>notification.method.board</value>
<value>1</value>
</row>
<row>
<value>notification.type.forum</value>
<value>0</value>
<value>8</value>
<value>notification.method.board</value>
<value>1</value>
</row>
</table>
</dataset>