test: disable hook when testing default preferences
authorAntoine Musso <hashar@free.fr>
Thu, 19 Jul 2018 15:35:59 +0000 (17:35 +0200)
committerAntoine Musso <hashar@free.fr>
Mon, 10 Sep 2018 08:25:22 +0000 (10:25 +0200)
commiteb8e2ba2340018fc325bbff5de0d020ecfcb96aa
treefa85d6ce306a34e21c4b756b8a9be43fe5208902
parentda05cff1dee088e7d43e39397c4c7ad7b0aa7e6b
test: disable hook when testing default preferences

The GetPreferences hook lets extensions register additional user
preferences.  They show up on the form and that breaks the hardcoded
assertion that exactly 5 preferences are available.

Disable the hook in case the test is run with extensions loaded in (ex:
BetaFeatures).

Change-Id: I78b11e989110407cd721e8a3fbbe81d28ca4be5b
tests/phpunit/includes/preferences/DefaultPreferencesFactoryTest.php