wiki.techinc.nl/tests/phpunit/unit/includes/HookContainer
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
..
DeprecatedHooksTest.php tests: Upgrade PHPUnit from 8.5+ to 9.5+ 2022-10-08 02:03:55 +02:00
GlobalHookRegistryTest.php Add tests for GlobalHookRegistry 2021-01-14 08:00:50 +00:00
HookContainerTest.php PHPUnit: introduce clearHooks() method. 2022-11-03 13:40:42 +01:00
HookRunnerTest.php Add HookRunnerTestBase for use by extensions 2021-01-10 11:17:31 +00:00
HookRunnerTestBase.php Replace trivial usages of code in strings with concatenation 2022-08-26 12:26:44 +00:00
StaticHookRegistryTest.php Add tests for StaticHookRegistry 2021-01-14 07:59:59 +00:00