From 4b420e295806e36f30840edb8e591435572c323d Mon Sep 17 00:00:00 2001 From: rxu Date: Sat, 5 Jul 2025 23:43:09 +0700 Subject: [PATCH] [ticket/17507] Fix notification related tests PHPBB-17507 --- .../fixtures/email_notification.type.post.xml | 15 +++++++++++++++ .../submit_post_notification.type.bookmark.xml | 7 +++++++ .../submit_post_notification.type.forum.xml | 15 +++++++++++++++ .../submit_post_notification.type.mention.xml | 7 +++++++ .../submit_post_notification.type.post.xml | 15 +++++++++++++++ ...ubmit_post_notification.type.post_in_queue.xml | 8 ++++++++ .../submit_post_notification.type.quote.xml | 6 ++++++ .../submit_post_notification.type.topic.xml | 5 +++++ .../fixtures/webpush_notification.type.post.xml | 15 +++++++++++++++ 9 files changed, 93 insertions(+) diff --git a/tests/notification/fixtures/email_notification.type.post.xml b/tests/notification/fixtures/email_notification.type.post.xml index 6d064141b7..7a4a7191eb 100644 --- a/tests/notification/fixtures/email_notification.type.post.xml +++ b/tests/notification/fixtures/email_notification.type.post.xml @@ -164,12 +164,14 @@ + iditem_typeitem_iduser_idmethodnotify + 1 notification.type.post 0 2 @@ -177,6 +179,7 @@ 1 + 2 notification.type.post 0 3 @@ -184,6 +187,7 @@ 1 + 3 notification.type.post 0 4 @@ -191,6 +195,7 @@ 1 + 4 notification.type.post 0 5 @@ -198,6 +203,7 @@ 1 + 5 notification.type.post 0 6 @@ -205,6 +211,7 @@ 1 + 6 notification.type.post 0 7 @@ -212,6 +219,7 @@ 1 + 7 notification.type.post 0 8 @@ -219,6 +227,7 @@ 1 + 8 notification.type.forum 0 2 @@ -226,6 +235,7 @@ 1 + 9 notification.type.forum 0 3 @@ -233,6 +243,7 @@ 1 + 10 notification.type.forum 0 4 @@ -240,6 +251,7 @@ 1 + 11 notification.type.forum 0 5 @@ -247,6 +259,7 @@ 1 + 12 notification.type.forum 0 6 @@ -254,6 +267,7 @@ 1 + 13 notification.type.forum 0 7 @@ -261,6 +275,7 @@ 1 + 14 notification.type.forum 0 8 diff --git a/tests/notification/fixtures/submit_post_notification.type.bookmark.xml b/tests/notification/fixtures/submit_post_notification.type.bookmark.xml index b6163e9ed0..1e6b6a19ca 100644 --- a/tests/notification/fixtures/submit_post_notification.type.bookmark.xml +++ b/tests/notification/fixtures/submit_post_notification.type.bookmark.xml @@ -119,12 +119,14 @@
+ iditem_typeitem_iduser_idmethodnotify + 1 notification.type.bookmark 0 2 @@ -132,6 +134,7 @@ 1 + 2 notification.type.bookmark 0 3 @@ -139,6 +142,7 @@ 1 + 3 notification.type.bookmark 0 4 @@ -146,6 +150,7 @@ 1 + 4 notification.type.bookmark 0 5 @@ -153,6 +158,7 @@ 1 + 5 notification.type.bookmark 0 6 @@ -160,6 +166,7 @@ 0 + 6 notification.type.bookmark 0 3 diff --git a/tests/notification/fixtures/submit_post_notification.type.forum.xml b/tests/notification/fixtures/submit_post_notification.type.forum.xml index b8df34bedc..c12c878604 100644 --- a/tests/notification/fixtures/submit_post_notification.type.forum.xml +++ b/tests/notification/fixtures/submit_post_notification.type.forum.xml @@ -155,12 +155,14 @@
+ iditem_typeitem_iduser_idmethodnotify + 1 notification.type.post 0 2 @@ -168,6 +170,7 @@ 1 + 2 notification.type.post 0 3 @@ -175,6 +178,7 @@ 1 + 3 notification.type.post 0 4 @@ -182,6 +186,7 @@ 1 + 4 notification.type.post 0 5 @@ -189,6 +194,7 @@ 1 + 5 notification.type.post 0 6 @@ -196,6 +202,7 @@ 1 + 6 notification.type.post 0 7 @@ -203,6 +210,7 @@ 1 + 7 notification.type.post 0 8 @@ -210,6 +218,7 @@ 1 + 8 notification.type.forum 0 2 @@ -217,6 +226,7 @@ 1 + 9 notification.type.forum 0 3 @@ -224,6 +234,7 @@ 1 + 10 notification.type.forum 0 4 @@ -231,6 +242,7 @@ 1 + 11 notification.type.forum 0 5 @@ -238,6 +250,7 @@ 1 + 12 notification.type.forum 0 6 @@ -245,6 +258,7 @@ 1 + 13 notification.type.forum 0 7 @@ -252,6 +266,7 @@ 1 + 14 notification.type.forum 0 8 diff --git a/tests/notification/fixtures/submit_post_notification.type.mention.xml b/tests/notification/fixtures/submit_post_notification.type.mention.xml index 86ae1fd037..7faf22c401 100644 --- a/tests/notification/fixtures/submit_post_notification.type.mention.xml +++ b/tests/notification/fixtures/submit_post_notification.type.mention.xml @@ -136,12 +136,14 @@
+ iditem_typeitem_iduser_idmethodnotify + 1 notification.type.mention 0 2 @@ -149,6 +151,7 @@ 1 + 2 notification.type.mention 0 3 @@ -156,6 +159,7 @@ 1 + 3 notification.type.mention 0 4 @@ -163,6 +167,7 @@ 1 + 4 notification.type.mention 0 5 @@ -170,6 +175,7 @@ 1 + 5 notification.type.mention 0 6 @@ -177,6 +183,7 @@ 0 + 6 notification.type.mention 0 8 diff --git a/tests/notification/fixtures/submit_post_notification.type.post.xml b/tests/notification/fixtures/submit_post_notification.type.post.xml index 75bfb03e89..7d760cd1eb 100644 --- a/tests/notification/fixtures/submit_post_notification.type.post.xml +++ b/tests/notification/fixtures/submit_post_notification.type.post.xml @@ -155,12 +155,14 @@
+ iditem_typeitem_iduser_idmethodnotify + 1 notification.type.post 0 2 @@ -168,6 +170,7 @@ 1 + 2 notification.type.post 0 3 @@ -175,6 +178,7 @@ 1 + 3 notification.type.post 0 4 @@ -182,6 +186,7 @@ 1 + 4 notification.type.post 0 5 @@ -189,6 +194,7 @@ 1 + 5 notification.type.post 0 6 @@ -196,6 +202,7 @@ 1 + 6 notification.type.post 0 7 @@ -203,6 +210,7 @@ 1 + 7 notification.type.post 0 8 @@ -210,6 +218,7 @@ 1 + 8 notification.type.forum 0 2 @@ -217,6 +226,7 @@ 1 + 9 notification.type.forum 0 3 @@ -224,6 +234,7 @@ 1 + 10 notification.type.forum 0 4 @@ -231,6 +242,7 @@ 1 + 11 notification.type.forum 0 5 @@ -238,6 +250,7 @@ 1 + 12 notification.type.forum 0 6 @@ -245,6 +258,7 @@ 1 + 13 notification.type.forum 0 7 @@ -252,6 +266,7 @@ 1 + 14 notification.type.forum 0 8 diff --git a/tests/notification/fixtures/submit_post_notification.type.post_in_queue.xml b/tests/notification/fixtures/submit_post_notification.type.post_in_queue.xml index 12e73b0ff2..fe0a99bdc5 100644 --- a/tests/notification/fixtures/submit_post_notification.type.post_in_queue.xml +++ b/tests/notification/fixtures/submit_post_notification.type.post_in_queue.xml @@ -103,12 +103,14 @@
+ iditem_typeitem_iduser_idmethodnotify + 1 notification.type.needs_approval 0 2 @@ -116,6 +118,7 @@ 1 + 2 notification.type.needs_approval 0 3 @@ -123,6 +126,7 @@ 1 + 3 notification.type.needs_approval 0 4 @@ -130,6 +134,7 @@ 1 + 4 notification.type.needs_approval 0 5 @@ -137,6 +142,7 @@ 1 + 5 notification.type.needs_approval 0 6 @@ -144,6 +150,7 @@ 1 + 6 notification.type.needs_approval 0 7 @@ -151,6 +158,7 @@ 0 + 7 notification.type.needs_approval 0 9 diff --git a/tests/notification/fixtures/submit_post_notification.type.quote.xml b/tests/notification/fixtures/submit_post_notification.type.quote.xml index 9f4ba91475..8fe85d0db3 100644 --- a/tests/notification/fixtures/submit_post_notification.type.quote.xml +++ b/tests/notification/fixtures/submit_post_notification.type.quote.xml @@ -91,12 +91,14 @@
+ iditem_typeitem_iduser_idmethodnotify + 1 notification.type.quote 0 2 @@ -104,6 +106,7 @@ 1 + 2 notification.type.quote 0 3 @@ -111,6 +114,7 @@ 1 + 3 notification.type.quote 0 4 @@ -118,6 +122,7 @@ 1 + 4 notification.type.quote 0 5 @@ -125,6 +130,7 @@ 1 + 5 notification.type.quote 0 6 diff --git a/tests/notification/fixtures/submit_post_notification.type.topic.xml b/tests/notification/fixtures/submit_post_notification.type.topic.xml index 1f96ed2ee7..eebab64e6b 100644 --- a/tests/notification/fixtures/submit_post_notification.type.topic.xml +++ b/tests/notification/fixtures/submit_post_notification.type.topic.xml @@ -99,12 +99,14 @@
+ iditem_typeitem_iduser_idmethodnotify + 1 notification.type.topic 0 2 @@ -112,6 +114,7 @@ 1 + 2 notification.type.topic 0 6 @@ -119,6 +122,7 @@ 1 + 3 notification.type.topic 0 7 @@ -126,6 +130,7 @@ 1 + 4 notification.type.topic 0 8 diff --git a/tests/notification/fixtures/webpush_notification.type.post.xml b/tests/notification/fixtures/webpush_notification.type.post.xml index d59d5b92c4..89c5354030 100644 --- a/tests/notification/fixtures/webpush_notification.type.post.xml +++ b/tests/notification/fixtures/webpush_notification.type.post.xml @@ -185,12 +185,14 @@
+ iditem_typeitem_iduser_idmethodnotify + 1 notification.type.post 0 2 @@ -198,6 +200,7 @@ 1 + 2 notification.type.post 0 3 @@ -205,6 +208,7 @@ 1 + 3 notification.type.post 0 4 @@ -212,6 +216,7 @@ 1 + 4 notification.type.post 0 5 @@ -219,6 +224,7 @@ 1 + 5 notification.type.post 0 6 @@ -226,6 +232,7 @@ 1 + 6 notification.type.post 0 7 @@ -233,6 +240,7 @@ 1 + 7 notification.type.post 0 8 @@ -240,6 +248,7 @@ 1 + 8 notification.type.forum 0 2 @@ -247,6 +256,7 @@ 1 + 9 notification.type.forum 0 3 @@ -254,6 +264,7 @@ 1 + 10 notification.type.forum 0 4 @@ -261,6 +272,7 @@ 1 + 11 notification.type.forum 0 5 @@ -268,6 +280,7 @@ 1 + 12 notification.type.forum 0 6 @@ -275,6 +288,7 @@ 1 + 13 notification.type.forum 0 7 @@ -282,6 +296,7 @@ 1 + 14 notification.type.forum 0 8