aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/auth/AuthenticationRequestTestCase.php
Commit message (Collapse)AuthorAgeFilesLines
* tests: Consistently use class_alias comments like elsewhereJames D. Forrester2024-09-251-0/+1
| | | | | | Found via `[^*][^\\]\nclass_alias`. Change-Id: I9732f75226445f48fb131c432b209d0fd3eba1ba
* tests: Use namespaced classes (1)Umherirrender2024-06-141-1/+1
| | | | | | | Changes to the use statements done automatically via script Addition of missing use statement done manually Change-Id: Iae45fa269363be8ee05c598ea6926514ce817762
* tests: More use statements in auth testsReedy2024-02-161-4/+6
| | | | Change-Id: Ic57b19a779065a18112334d79ede395ced1a202b
* tests: Add Tests to PHP namespacingReedy2024-02-161-1/+4
| | | | Change-Id: I849268172751d50292e93aa75abe8094873f56bc
* tests: Allow overridable data providers to be staticmainframe982023-05-161-2/+24
| | | | | | | | | | | | | | | | This uses some reflection to identify if the data provider is static or not. If it isn't, a deprecation notice is emitted. This doesn't fail the tests, but is still printed in the output. To facilitate this, the relevant abstract method has been uncommented, as PHP does not like it when function signatures do not match up. This approach means that tests in extensions or skins do not immediately break when making data providers static. Instead, they can do so at their own pace. Bug: T332865 Change-Id: I5ff35ad0e894f0a27beae00257dc1fc599ad518d
* MediaWikiTestCase to MediaWikiIntegrationTestCaseaddshore2020-06-301-1/+1
| | | | | | | | | | | | | The name change happened some time ago, and I think its about time to start using the name name! (Done with a find and replace) My personal motivation for doing this is that I have started trying out vscode as an IDE for mediawiki development, and right now it doesn't appear to handle php aliases very well or at all. Change-Id: I412235d91ae26e4c1c6a62e0dbb7e7cf3c5ed4a6
* Replace all call_user_func(_array) in all testsThiemo Kreuz2020-06-061-1/+1
| | | | | | | | | | | | | There is native support for all of this now in PHP, thanks to changes and additions that have been made in later versions. There should be no need any more to ever use call_user_func() or call_user_func_array(). Reviewing this should be fairly easy: Because this patch touches exclusivly tests, but no production code, there is no such thing as "insufficent test coverage". As long as CI goes green, this should be fine. Change-Id: Ib9690103687734bb5a85d3dab0e5642a07087bbc
* Fix mismatching type hints in PHPDoc tagsThiemo Kreuz2020-03-241-0/+6
| | | | | | | | | | | This is a collection of random bits from my local stashes. This patch intentionally only touches comments, no code. Notably: * Use more specific string[] instead of array, if possible. * Some comments mention "or null", but miss to list the type. Change-Id: I712b28964f125c8e3dcb4e3fb993757a09f96644
* Deprecate and stop using assertType(OrValue)Daimona Eaytoy2019-12-151-6/+6
| | | | | | | | | | | | *assertType is marked as deprecated, and should ideally be removed soon (i.e. no hard deprecation to follow) *Most usages of assertType in core were autofixed by using I8ef556b630812aeea77c5606713f53d9af609f1b *assertTypeOrValue was removed because only used in SiteTest (codesearch: https://codesearch.wmflabs.org/search/?q=assertTypeOrValue&i=nope&files=&repos=) *SiteTest::assertTypeOrFalse was removed because unused Bug: T192167 Change-Id: Icb3014b8fe7d1c43e64a37e0bdaaffec18bb482f
* Use ::class to resolve class names in testsUmherirrender2018-01-261-3/+3
| | | | | | | This helps to find renamed or misspelled classes earlier. Phan will check the class names Change-Id: Ie541a7baae10ab6f5c13f95ac2ff6598b8f8950c
* AuthManager: Allow for flagging fields as "sensitive"Brad Jorsch2016-08-181-0/+7
| | | | | | | | This can allow AuthenticationRequests to flag certain fields as sensitive, so e.g. the API can insist they be in the POST body rather than in the query string. Change-Id: I7b12aa4cd8f5a570f0df7213c0f9084b5a4d4de7
* Remove $wgDisableAuthManagerGergő Tisza2016-08-091-9/+0
| | | | Change-Id: I2b2c9693a275fcc026916bd97f303e7a5c8df341
* Add AuthManagerBrad Jorsch2016-05-161-0/+96
This implements the AuthManager class and its needed interfaces and subclasses, and integrates them into the backend portion of MediaWiki. Integration with frontend portions of MediaWiki (e.g. ApiLogin, Special:Login) is left for a followup. Bug: T91699 Bug: T71589 Bug: T111299 Co-Authored-By: Gergő Tisza <gtisza@wikimedia.org> Change-Id: If89d24838e326fe25fe867d02181eebcfbb0e196