aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/exception/PermissionsErrorTest.php
Commit message (Collapse)AuthorAgeFilesLines
* Namespace all remaining files in includes/exceptionJames D. Forrester2025-03-251-3/+4
| | | | | | | | | In MediaWiki/Exception, to follow PSR-4 per plural vs. singular (this can be changed later if people really care). Also, move the couple of exceptions in here that were already namespaced in the MW-top-level into the new space. Bug: T353458 Change-Id: I12ed850ae99effb699a6d7ada173f54e72f0570e
* PermissionStatus: Hard-deprecate toLegacyErrorArray()Bartosz Dziewoński2025-03-241-0/+1
| | | | | | | | | | | No longer used except by other hard-deprecated methods. Depends-On: I392088786faa4d52b7702dcf3b4e4549865b9650 Depends-On: I4760a342e7906000485142b63c739fb802bb40ed Depends-On: I377e30f91ae41730b14731133c763fa100fb616f Depends-On: Ic2302366e3d63413d110657ce999952b3fa7a1f6 Depends-On: I23ce3b4d26bbe58257b449993a54c45093007a3e Change-Id: Ibf274036a1522001144c41ebff99f544860f6408
* PermissionsError: Deprecate public propertiesBartosz Dziewoński2024-08-121-1/+13
| | | | | | | | | | | | Follow-up to 298ec8382b7914d128c1baaa88d011ca668e5207, which replaced `public $errors` with `public $status`, causing T372181. * Add a deprecated fallback getter/setter for $errors * Make $permission private and add a deprecated getter/setter * Make $status private Bug: T372181 Change-Id: If44b2256289d6bde9e9abb901d9dc145555c971f
* PermissionsError: Replace use of legacy error arraysBartosz Dziewoński2024-08-091-7/+10
| | | | Change-Id: I5493deb8b72f499ecd46b8093b5fffbb12e7c246
* tests: Use namespaced classes (1)Umherirrender2024-06-141-0/+1
| | | | | | | Changes to the use statements done automatically via script Addition of missing use statement done manually Change-Id: Iae45fa269363be8ee05c598ea6926514ce817762
* tests: Fix @covers and @coversDefaultClass to have leading \Reedy2024-02-161-1/+1
| | | | Change-Id: I5629f91387f2ac453ee4341bfe4bba310bd52f03
* tests: Make some PHPUnit data providers staticTim Starling2023-03-241-2/+2
| | | | | | | | | | | | | 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
* Merge "Change $wgLang to use Message::*Param functions"jenkins-bot2023-01-281-1/+1
|\
| * Change $wgLang to use Message::*Param functionsUmherirrender2022-09-261-1/+1
| | | | | | | | | | | | | | | | | | Delay the formatting of numbers/lists when the message should be shown. That allows to use the language of the user given to the message and avoids global state by the global variable $wgLang or it use the global state of Message class, which needs to be fixed later. Change-Id: I015cea3a585a647e160b94d8ef30fad5d5df6cff
* | tests: Handle dynamic created properties on test classesUmherirrender2023-01-131-1/+0
|/ | | | | | | | | - Declare missing properties - Remove unused or avoid set of properties - Add AllowDynamicProperties Bug: T314099 Change-Id: Ie631894f2ffbb616f6dd09851405d681f3eb8fcd
* build: Updating dependencieslibraryupgrader2021-07-221-1/+1
| | | | | | | | | | | | | | composer: * mediawiki/mediawiki-codesniffer: 36.0.0 → 37.0.0 The following sniffs now pass and were enabled: * Generic.ControlStructures.InlineControlStructure * MediaWiki.PHPUnit.AssertCount.NotUsed npm: * svgo: 2.3.0 → 2.3.1 * https://npmjs.com/advisories/1754 (CVE-2021-33587) Change-Id: I2a9bbee2fecbf7259876d335f565ece4b3622426
* Allow PermissionError to be constructed with a PermissionStatusCindy Cicalese2021-03-011-0/+49
Bug: T271504 Change-Id: I74d651c43cb67e928c627cb3812c6135232c99d8