wiki.techinc.nl/tests/phpunit/unit
daniel 8e0ae53482 PHPUnit: introduce clearHooks() method.
Since the introduction of the new hooks stystem, it is not possible to
clear all hooks by setting $wgHooks. This would only clear old-style
hooks. This is becoming increasingly problematic as the new hooks system
is adopted by more and more extensions.

Introduce a method that allows tests to reset many or all hooks.
This isn't needed much in core, but extension tests need it.

Change-Id: Ica3eb88fe23fe822d2aadb96ff5d15f80dce0d7b
2022-11-03 13:40:42 +01:00
..
documentation Merge "Add composer releasenotes command" 2021-12-23 17:43:34 +00:00
includes PHPUnit: introduce clearHooks() method. 2022-11-03 13:40:42 +01:00
languages tests: Replace assertRegExp with assertMatchesRegularExpression 2022-10-07 14:13:16 -04:00
linker Replace trivial usa of mock builder with createMock() shortcut 2022-07-15 16:43:48 +00:00
maintenance Runner: Handle more params in runner. 2022-06-13 16:10:51 +00:00
parser/Parsoid LanguageVariantConverter: Use content language code from HTTP header 2022-10-07 20:28:57 +05:30