Commit graph

5 commits

Author SHA1 Message Date
Reedy
85396a9c99 tests: Fix @covers and @coversDefaultClass to have leading \
Change-Id: I5629f91387f2ac453ee4341bfe4bba310bd52f03
2024-02-16 22:43:56 +00:00
James D. Forrester
4bae64d1c7 Namespace includes/context
Bug: T353458
Change-Id: I4dbef138fd0110c14c70214282519189d70c94fb
2024-02-08 11:07:01 -05:00
daniel
3d55397207 Move creation of BlockErrorFormatter into FormatterFactory
The idea is that all formatters that need the user language or
other request specific context should be instantiated by
FormatterFactory.

Change-Id: I8334cc89dcf0f293298b82e004116be50a90f0d1
2024-01-26 13:03:44 -05:00
Umherirrender
388b0374fa tests: Use namespaced classes
Changes to the use statements done automatically via script
Addition of missing use statements and changes to docs done manually

Change-Id: Ib326ae1e5c8409a98398c721e8b8ce42c73bd012
2023-12-11 15:59:55 +01:00
Dreamy Jazz
527be9ff54 Test UserBlockedError
Why:
* Recent additions of multiple message display mean that
  adding tests for UserBlockedError is useful in reviewing
  the change.
* As I made these tests to review the change, they can be
  added into the repo as tests to increase test coverage.

What:
* Add two integration tests for UserBlockedError. These
  are integration tests because the class relies on the
  global state (calling MediaWikiServices::getInstance in
  all cases).

Bug: T349826
Change-Id: I9f27d792ac7faf9378278e729a8cef2ec39c2bba
2023-11-02 13:20:11 +00:00