mediawiki-extensions-Cite/tests/phpunit
vladshapik 71c4bd1f98 Adjust Parser related tests to DeprecationHelper
There is the patch(I4297aea3489bb66c98c664da2332584c27793bfa) which will
add DeprecationHelper trait to Parser class in order to deprecate public
Parser::mUser. DeprecationHelper trait has appropriate magic methods
which help to use dynamic properties. In order not to mock them via
createMock(), so getMockBuilder() and onlyMethods() was used.
onlyMethods() method helps to specify methods which need to be mocked.
Now we can use dynamic properties in Parser related tests of Cite
extension.

Bug: T285713
Change-Id: Ie75c9cd66d296ce7cf15432e2093817e18004443
2021-08-17 14:14:55 +00:00
..
unit Adjust Parser related tests to DeprecationHelper 2021-08-17 14:14:55 +00:00
CiteCSSFileModuleTest.php build: Updating mediawiki/mediawiki-codesniffer to 37.0.0 2021-07-22 12:34:32 +00:00
CiteDbTest.php build: Updating mediawiki/mediawiki-codesniffer to 37.0.0 2021-07-22 12:34:32 +00:00
CiteHooksTest.php Update Cite to use the new HookContainer/HookRunner system 2020-12-28 17:55:34 +02:00
CiteIntegrationTest.php Merge "Refactor newline logic for auto-generated <references> sections" 2021-07-30 14:17:49 +00:00
ReferenceMessageLocalizerTest.php Remove single use classes from the use section 2019-12-17 14:57:55 +01:00