mediawiki-extensions-Discus.../tests
Bartosz Dziewoński 1c3fada1fb Make CommentUtilsTest a proper unit test
Documentation:
https://www.mediawiki.org/wiki/Manual:PHP_unit_testing/Writing_unit_tests_for_extensions#Two_types_of_tests

We can do this because the tested methods do not depend on any globals
or on MediaWiki being installed.

In addition to being the new hotness, MediaWikiUnitTestCase allows the
test classes that use it instead of MediaWikiTestCase to start up much
faster. In my testing, running this test case individually now takes
0.35s, compared to 1.1s before.

Try:
* With new code:
  time php tests/phpunit/phpunit.php extensions/DiscussionTools/tests/phpunit/unit/CommentUtilsTest.php
* With old code:
  time php tests/phpunit/phpunit.php extensions/DiscussionTools/tests/phpunit/CommentUtilsTest.php

Change-Id: I771b1f3d101a394ee869e42547d9ae7839397752
2021-02-02 15:37:17 +01:00
..
cases Use tabs for indentation in JSON test files 2021-01-27 00:25:15 +00:00
data Move Hooks to HookUtils 2021-02-01 22:35:11 +00:00
phpunit Make CommentUtilsTest a proper unit test 2021-02-02 15:37:17 +01:00
qunit Fix skipping to the end of paragraph, now it considers nested tags 2021-01-18 18:20:20 +00:00