Commit graph

6 commits

Author SHA1 Message Date
Reedy
eb41565a9a Tests: Start marking some closures as static
Bug: T274036
Change-Id: Ib738ecd3bc23d34900bc268c8246702ac3655746
2021-02-06 19:57:42 +00:00
Umherirrender
4829c65848 Inject LinkBatchFactory into QueryPage and use it
The LinkBatchFactory service is only used in one method call in the
QueryPage class, so make it optional and provide it
when needed with a setter

Bug: T259960
Change-Id: Iee446b1defc9a4f116dc264b012ab972f89d95fc
2020-11-02 14:51:56 +01:00
Umherirrender
15442f328a Inject DBLoadBalancer into abstract QueryPage
Every QueryPage needs a database to work
Inject the new service on special pages with already using services.

Bug: T259960
Change-Id: I96d91993b70052484c1a6a918a1e2ccc91e39ae7
2020-11-02 00:41:32 +01:00
Umherirrender
920d34b49d Inject NamespaceInfo service into SpecialShortPages/SpecialLongPages
This covers only direct used services by this special page
Services used by the base class are not part of this patch set

Bug: T259960
Change-Id: I041b1f8ef15d687b9a0553fd0cbe360e774c75cf
2020-10-11 01:29:51 +00:00
addshore
959bc315f2 MediaWikiTestCase to MediaWikiIntegrationTestCase
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
2020-06-30 17:02:22 +01:00
Reedy
dd71a77512 Make most special pages class names match filename
Change-Id: I3a9f932acb7d9cf44a984b5d97f9fbc6b8670f7d
2019-09-10 02:47:08 +01:00
Renamed from tests/phpunit/includes/specials/SpecialShortpagesTest.php (Browse further)