Commit graph

6 commits

Author SHA1 Message Date
James D. Forrester
4bae64d1c7 Namespace includes/context
Bug: T353458
Change-Id: I4dbef138fd0110c14c70214282519189d70c94fb
2024-02-08 11:07:01 -05:00
Umherirrender
388b0374fa tests: Use namespaced classes
Changes to the use statements done automatically via script
Addition of missing use statements and changes to docs done manually

Change-Id: Ib326ae1e5c8409a98398c721e8b8ce42c73bd012
2023-12-11 15:59:55 +01:00
James D. Forrester
1d0b7ae1e2 Namespace User under \MediaWiki\User
Bug: T166010
Change-Id: I7257302b485588af31384d4f7fc8e30551f161f1
2023-09-19 19:18:16 +00:00
James D. Forrester
459cbb0494 Namespace remaining 'specialpage' files under \MediaWiki\SpecialPage
SpecialPageFactory is already here, but none of the others were yet.

Bug: T166010
Change-Id: I9689bf0a1ab329625e23669b99f019b96295fffd
2023-09-18 18:23:13 +01:00
Timo Tijhof
04b50619a5 CommentFormatter: Minor clean up to test cases
* Avoid using /wiki/ as both article path and script path.
  This looked like a mistake and would prevent catching a
  mixup as test failure.

The possibly intended use of this was to detect whether the correct
foreign article path is being used, by being different from the
local one. Test this through a more obviously different value instead,
such as "/foo".

* Remove the unused "dewiki" setting.

* Remove use of production-like setting and use something more
  obviously fake instead.

Change-Id: I87bd2beb4e8ef945e4f00044dfe89c746f4b3c5e
2023-09-14 19:36:55 -07:00
Umherirrender
790ae736c1 tests: Move test cases from /includes/ into sub folder
Follow move of the tested class
Most moves are part of T321882

Change-Id: I74ab45d6a5331dcb2ff0b65dc2cc7c6315146646
2023-09-13 00:09:05 +02:00
Renamed from tests/phpunit/includes/LinkerTest.php (Browse further)