Page MenuHomePhabricator

Stop registering some Client hooks only outside of unit tests
Closed, ResolvedPublic

Description

WikibaseClient currently skips registering a few usage tracking-related hooks during unit tests (if defined( 'MW_PHPUNIT_TEST' )), out of performance considerations and also because apparently they break some tests. We don’t want to repeat this pattern after moving to JSON-based extension registration, and would like to get rid of it instead.