mediawiki-extensions-Discus.../tests/phpunit
Bartosz Dziewoński 0ecc8a4c05 Improve detecting already signed comments
Previously, we required a signature at the end of the comment.
This was a pretty rough heuristic that did not correctly handle
many comments that we would consider entirely properly signed
in CommentParser (e.g. comments wrapped in formatting like
<small>…</small>, comments with a post-scriptum or in parentheses,
or comments generated by various templates).

Now we process the user input using the same code that adds reply
links, and only add a signature when we detect that there really
isn't a signature (including template-generated), or if the signature
is in the wrong place and would result in the reply link showing up
in the wrong place as well (not at the end of the comment).

Bug: T278442
Bug: T268558
Bug: T278355
Bug: T291421
Bug: T282983
Change-Id: I46b6110af328ebdf93b7dfc2bd941e04391a1599
2022-02-21 21:21:26 +00:00
..
unit Improve detecting already signed comments 2022-02-21 21:21:26 +00:00
CommentFormatterTest.php Change CommentParser into a service 2022-02-19 19:51:57 +01:00
CommentModifierTest.php Improve detecting already signed comments 2022-02-21 21:21:26 +00:00
CommentParserTest.php Split off ThreadItemSet from CommentParser 2022-02-21 16:22:32 +00:00
CommentUtilsTest.php Improve detecting already signed comments 2022-02-21 21:21:26 +00:00
EventDispatcherTest.php Split off ThreadItemSet from CommentParser 2022-02-21 16:22:32 +00:00
IntegrationTestCase.php Set $wgUsePigLatinVariant = false while running tests 2021-12-01 23:25:30 +01:00
LanguageDataTest.php Change CommentParser into a service 2022-02-19 19:51:57 +01:00
MockCommentFormatter.php Change CommentParser into a service 2022-02-19 19:51:57 +01:00
MockEventDispatcher.php Split off ThreadItemSet from CommentParser 2022-02-21 16:22:32 +00:00
MockLanguageData.php Change CommentParser into a service 2022-02-19 19:51:57 +01:00
MockSubscriptionStore.php Automatic topic subscriptions (on any edit) 2021-11-15 22:45:42 +01:00
TestUtils.php Change CommentParser into a service 2022-02-19 19:51:57 +01:00
ThreadItemTest.php Split off ThreadItemSet from CommentParser 2022-02-21 16:22:32 +00:00