wiki.techinc.nl/tests/phpunit/mocks
Petr Pchelko edb3a9a692 Allow passing mock Authority in API integration tests
This is a demo, a lot of tests could be rewritten as a followup
to pass proper Authority when executing tests instead of writing
globals. Much cleaner imho.

An improvement idea is to allow overriding 'default permissions'
when creating a mock Authority.

Change-Id: I38570024e0d5a67a8e1c52f7456c458090ec2b6e
2021-06-07 11:50:42 -07:00
..
content
filebackend
filerepo
json
languages Language: Turn public properties into Getters in LanguageConverter based hierarchy 2021-02-03 15:17:42 +02:00
media
permissions Allow passing mock Authority in API integration tests 2021-06-07 11:50:42 -07:00
poolcounter
search
session
DummyServicesTrait.php Add DummyServicesTrait::getDummyInterwikiLookup 2021-05-05 10:57:59 -07:00
GhostFieldTestClass.php
MockChangesListFilter.php
MockChangesListFilterGroup.php
MockHttpTrait.php phpunit: Don't redefine methods in traits 2021-03-23 12:59:34 +00:00
MockMessageLocalizer.php
MockServiceDependenciesTrait.php phpunit: Don't redefine methods in traits 2021-03-23 12:59:34 +00:00
MockTitleTrait.php Remove SearchResultPageIdentity interface 2021-05-10 16:05:45 +02:00
NullHttpRequestFactory.php
NullMultiHttpClient.php Tests: Start marking some closures as static 2021-02-06 19:57:42 +00:00
TestLocalisationCache.php Tests: move some non-tests to /mocks 2021-04-14 07:16:05 +00:00
TestLogger.php Remove unused default values from class properties 2021-05-12 13:44:28 +02:00