Commit graph

6 commits

Author SHA1 Message Date
C. Scott Ananian
e01e41bdea Implement Language::isSameCodeAs()
This implements the additional Bcp47Code interface method required by
wikimedia/bcp-47-code 2.0.0.

Bug: T331887
Change-Id: If3abc8a55eda8879ca904b25e9e3e5d40c1b0bab
2023-10-04 12:29:57 -04:00
James D. Forrester
c1599c91b3 Namespace Config-related classes under \MediaWiki\Config
Bug: T166010
Change-Id: I4066885a7ea071d22497abcdb3f95e73e154d08c
2023-09-21 05:41:58 +00:00
James D. Forrester
a8a6cfd966 Namespace NamespaceInfo under \MediaWiki\Title
One of the big ones, so doing this alone.

Bug: T166010
Change-Id: Ibe103cd362535d3cb94cb8931e95fc74099d1497
2023-09-19 05:17:04 +00:00
Tim Starling
5e30a927bc tests: Make some PHPUnit data providers static
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
2023-03-24 02:53:57 +00:00
C. Scott Ananian
d87ea27fb3 Implement Bcp47Code in Language class
This implements Language::toBcp47Code(), an interface defined in the
wikimedia/bcp-47-code library, in order to facilitate interacting with
the parsoid library (which shouldn't know anything about
mediawiki-internal language codes).

Change-Id: Id09218ae97fd8167866064c0a3f6142696d66a8d
2023-01-27 22:56:11 -05:00
C. Scott Ananian
a2465a53d0 Move LanguageTest unit test to proper subdirectory
This was moved out of the top-level languages/ directory some time ago
into includes/language; the unit test should do the same.

Change-Id: Id1ce8e494463f77ba17e778c456bf40eab6c4a93
2023-01-27 18:38:10 -05:00
Renamed from tests/phpunit/unit/languages/LanguageTest.php (Browse further)