mediawiki-extensions-Discus.../tests/cases/EventDispatcher/other-events/rev2c.json
Bartosz Dziewoński 80704b6e80 Test cases for interactions with events generated by base Echo
Adding test cases in a separate commit to make it easier to review how
the test results change after I98fbca8e.

* For mentions, the 'mentioned-users' extra parameter is copied to our
  event (which is then used to avoid duplicate notifications).
* For user talk page edit, nothing special happens right now (we use
  the target page title to avoid duplicate notifications, but this is
  not apparent from the test case, since page titles are not present).

Bug: T281590
Bug: T253082
Change-Id: I153e7735f63f1e2643ed881281d807313cd699c3
2021-08-01 12:27:33 +02:00

30 lines
501 B
JSON

[
{
"type": "mention-summary",
"title": [],
"extra": {
"revid": 0,
"mentioned-users": {
"1": 1
}
},
"agent": []
},
{
"type": "dt-subscribed-new-comment",
"title": {},
"extra": {
"subscribed-comment-name": "h-Y-2020-01-01T00:02:00.000Z",
"comment-id": "c-Y-2020-01-01T00:02:00.000Z-C",
"comment-name": "c-Y-2020-01-01T00:02:00.000Z",
"content": "D.",
"section-title": "C",
"revid": null,
"mentioned-users": {
"1": 1
}
},
"agent": {}
}
]