mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-25 00:38:33 +00:00
b68832ace0
We were calling Title::newFromText() before setupEnv(), which meant that the title for each test case was parsed using the default rules for English, rather than the rules for the specified wiki. This only makes a practical difference for tests with self-links. Changed the only such test to demonstrate the fix. Change-Id: I45561f1c9f0d149e2b743f0000b742bf6fc014af
38 lines
630 B
JSON
38 lines
630 B
JSON
[
|
|
{
|
|
"placeholderHeading": false,
|
|
"type": "heading",
|
|
"range": [
|
|
"1/1/0",
|
|
"1/1/1"
|
|
],
|
|
"headingLevel": 2,
|
|
"level": 0,
|
|
"name": "h-Ed-2019-08-21T19:06:00.000Z",
|
|
"id": "h-Topic-2019-08-21T19:06:00.000Z",
|
|
"warnings": [],
|
|
"replies": [
|
|
{
|
|
"type": "comment",
|
|
"timestamp": "2019-08-21T19:06:00.000Z",
|
|
"author": "Ed",
|
|
"range": [
|
|
"3/0",
|
|
"3/2/26"
|
|
],
|
|
"signatureRanges": [
|
|
[
|
|
"3/1",
|
|
"3/2/26"
|
|
]
|
|
],
|
|
"level": 1,
|
|
"name": "c-Ed-2019-08-21T19:06:00.000Z",
|
|
"id": "c-Ed-2019-08-21T19:06:00.000Z-Topic",
|
|
"warnings": [],
|
|
"replies": []
|
|
}
|
|
]
|
|
}
|
|
]
|