mediawiki-extensions-Discus.../tests/phpunit
Bartosz Dziewoński 6bf128cf2d Use setExtensionData() instead of marker comments where possible (3/3)
We started using marker comments (HTML comments with special content
inserted into the page) for the reply buttons back in the day, because
we needed to indicate their location in the HTML. Later we used the
same idea for things which aren't actually tied to a specific location
in the HTML, such as boolean data like __DTEMPTYTALKPAGE__. There is a
better way to do this.

This commit stop writing the HTML comments, which are no longer used,
and cleans up the tests.

Bug: T328980
Change-Id: I37541356830945cc9abcc79d4c445ff6f2449759
(cherry picked from commit ab40ef62c0)
2023-03-21 00:13:01 +01:00
..
integration Don't rely on ParserOutput::getTOCHTML() to determine if ToC is present 2023-01-27 09:58:47 +00:00
unit Ship HTML test files for JS using 'packageFiles' instead of 'templates' 2022-10-12 22:45:41 +00:00
CommentFormatterTest.php Use setExtensionData() instead of marker comments where possible (3/3) 2023-03-21 00:13:01 +01:00
CommentModifierTest.php Place replies outside transclusions, disallow replying to transcluded comments 2022-11-14 19:17:18 +01:00
CommentParserTest.php CommentParser: Output display name if different to username 2023-02-23 23:03:32 +00:00
CommentUtilsTest.php Follow-up be012ced: tests: Provide some basic direct tests for CommentUtils::getTitleFromUrl 2022-11-29 15:43:18 -05:00
ContentThreadItemTest.php ThreadItem: Add display names to getAuthorsBelow 2023-02-23 23:03:35 +00:00
EventDispatcherTest.php Only filter code coverage at the class level 2022-09-15 14:08:30 +02:00
IntegrationTestCase.php Set $wgUsePigLatinVariant = false while running tests 2021-12-01 23:25:30 +01:00
LanguageDataTest.php LanguageData: Use special page alias with spaces 2023-01-16 22:27:23 +01:00
MockCommentFormatter.php Use PHP 7.4 property types 2022-10-28 21:56:38 +02:00
MockEventDispatcher.php Separate ContentThreadItem and DatabaseThreadItem etc. 2022-07-04 23:35:50 +02:00
MockLanguageData.php Use PHP 7.4 property types 2022-10-28 21:56:38 +02:00
MockSubscriptionStore.php Automatic topic subscriptions (on any edit) 2021-11-15 22:45:42 +01:00
ServiceWiringTest.php Test ServiceWiring.php 2023-01-13 12:01:38 +00:00
TestUtils.php Use FormatJson helper for outputting pretty JSON for tests 2022-10-12 00:52:52 +02:00
ThreadItemStoreTest.php ThreadItemStoreTest: Add test for old revisions of indistinguishable comments 2022-10-20 03:50:47 +02:00