aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/integration/includes/context
Commit message (Collapse)AuthorAgeFilesLines
* Namespace all remaining files in includes/skinJames D. Forrester2025-03-251-2/+2
| | | | | Bug: T353458 Change-Id: I3e829e35c93bcaae75e401b1801bddf93c0b416c
* Move Language and friends into Language namespaceJames D. Forrester2024-08-101-1/+1
| | | | | Bug: T353458 Change-Id: Id3202c0c4f4a2043bf97b7caee081acab684155c
* tests: Use namespaced classes (@covers)Umherirrender2024-06-142-12/+12
| | | | | | Some fixes done via codesniffer fix (Ibd0f48e14e) Change-Id: I0404ceca7c5abe8d32ef9a8fce404c7b89ffbaae
* tests: Fix @covers and @coversDefaultClass to have leading \Reedy2024-02-162-12/+12
| | | | Change-Id: I5629f91387f2ac453ee4341bfe4bba310bd52f03
* Namespace includes/contextJames D. Forrester2024-02-082-5/+5
| | | | | Bug: T353458 Change-Id: I4dbef138fd0110c14c70214282519189d70c94fb
* Move StaticUserOptionsLookup to the MediaWiki\User\Options namespaceMartin Urbanec2023-11-291-1/+1
| | | | | | | | Follow-up to I9822eb1553870b876d0b8a927e4e86c27d83bd52, I missed the Static class in that patch. Bug: T352284 Change-Id: I42653491c19dde5de99e0661770e2c81df5d7e84
* Namespace Config-related classes under \MediaWiki\ConfigJames D. Forrester2023-09-211-1/+1
| | | | | Bug: T166010 Change-Id: I4066885a7ea071d22497abcdb3f95e73e154d08c
* Namespace User under \MediaWiki\UserJames D. Forrester2023-09-192-2/+2
| | | | | Bug: T166010 Change-Id: I7257302b485588af31384d4f7fc8e30551f161f1
* context: Disallow cloning RequestContext object and throw an errorWandji692023-09-141-0/+8
| | | | | Bug: T323187 Change-Id: Ib4a1e97d7ab9f91b937e099394ccd9a2d37a841b
* Reorg: Move three output related classes to includes/Output/Amir Sarabadani2023-09-051-1/+1
| | | | | | | | | | And namesapce them: - StreamFile - OutputHandler - OutputPage Bug: T321882 Change-Id: Iedf8d88c595e580f2d8f0734c92aa5c45618ba33
* Normalize the skin name when "skin" is in HiddenPrefsTim Starling2023-07-271-15/+13
| | | | | | | | | | | | | | When $wgHiddenPrefs['skin'] = true and $wgDefaultSkin is set to a nonexistent skin, SkinFallback should be used. An exception should not be thrown. An odd case, but it did work before a99e31533b5cf856. Add test. Simplify the existing tests, using StaticUserOptionsLookup instead of the mock builder. Bug: T342733 Change-Id: I372ace56c104a3ecc9c02d87524e8ef0be7239cf
* Regression test for T342733 empty skin nameTim Starling2023-07-261-0/+17
| | | | | Bug: T342733 Change-Id: Ia5076b917e085442340d90256116890d52bfe6de
* Add tests for RequestContext::getSkin()Tim Starling2023-07-111-0/+62
| | | | Change-Id: I702697bfb3a55f613cf311700733e35fb20d6dea
* tests: Make some PHPUnit data providers staticTim Starling2023-03-241-1/+1
| | | | | | | | | | | | | Just methods where adding "static" to the declaration was enough, I didn't do anything with providers that used $this. Initially by search and replace. There were many mistakes which I found mostly by running the PHPStorm inspection which searches for $this usage in a static method. Later I used the PHPStorm "make static" action which avoids the more obvious mistakes. Bug: T332865 Change-Id: I47ed6692945607dfa5c139d42edbd934fa4f3a36
* Reorg: Namespace the Title classJames D. Forrester2023-03-022-2/+2
| | | | | | | | | | | | | | | | | | | This is moderately messy. Process was principally: * xargs rg --files-with-matches '^use Title;' | grep 'php$' | \ xargs -P 1 -n 1 sed -i -z 's/use Title;/use MediaWiki\\Title\\Title;/1' * rg --files-without-match 'MediaWiki\\Title\\Title;' . | grep 'php$' | \ xargs rg --files-with-matches 'Title\b' | \ xargs -P 1 -n 1 sed -i -z 's/\nuse /\nuse MediaWiki\\Title\\Title;\nuse /1' * composer fix Then manual fix-ups for a few files that don't have any use statements. Bug: T166010 Follows-Up: Ia5d8cb759dc3bc9e9bbe217d0fb109e2f8c4101a Change-Id: If8fc9d0d95fc1a114021e282a706fc3e7da3524b
* tests: Consolidate legacy Context tests into integration suiteJames D. Forrester2023-01-172-0/+346
| | | | | | None of these are stand-alone unit tests. Change-Id: I5b48cffd000a0f758bc7a24b07cebb30b68fde01
* tests: Add some basic coverage for RequestContext::sanitizeLangCodeJames D. Forrester2022-11-021-0/+47
Change-Id: If8fa4e6fe1428d25d6197b77d5ed192b2940cf7c