wiki.techinc.nl/tests/phpunit/unit/includes/HookContainer
daniel aab5619d4d HookContainer: fix clear() and scopedRegister().
Previously, clear() and scopedRegister() would not disable hook handlers
registered using the new mechanism. Only old style hook handlers would
be suppressed.

The new implementation is based on tombstones: Instead of actually
removing registered handlers to override them, tombstone markers are
put into place to disable existing handlers until the tombstone is
removed again. This allows hook handlers to be disabled temporarily
in a consistent way.

This removes HookContainer::getOriginalHooksForTest(), which is
incompatible with the new logic.

Bug: T255056
Change-Id: I08c1824797ac60a5098a52b5781af8ac4dd38928
2020-09-08 21:07:59 +02:00
..
DeprecatedHooksTest.php Introduce soft deprecation of hooks 2020-06-04 10:00:55 +10:00
HookContainerTest.php HookContainer: fix clear() and scopedRegister(). 2020-09-08 21:07:59 +02:00