Go to file
Antoine Musso 8e09acc804 TitleBlacklistTest singleton can now be destroyed
The test suite set $wgTitleBlacklistSources with a fixture source of
directories.  Unfortunately when running tests from MediaWiki core the
TitleBlacklist has already been set with empty value and thus setting
the global is a noop.

That later causes a test to fail because the blacklist is emtpy.

Add TitleBlacklistTest::destroySingleton() so a test can reset the
singleton when changing $wgTitleBlacklistSources.

Since that is solely for testing, throw an exception unless we had
MW_PHPUNIT_TEST defined.

Bug: T155980
Change-Id: I99c3185811ed7b2225953fa6960096985e97c4d2
2017-01-23 17:41:03 +01:00
api Merge "Update for API error i18n" 2016-12-06 09:31:13 +00:00
i18n Localisation updates from https://translatewiki.net. 2017-01-01 10:14:33 +01:00
modules Add the mediawiki.api.titleblacklist module 2013-03-06 16:27:20 +00:00
tests/phpunit TitleBlacklistTest singleton can now be destroyed 2017-01-23 17:41:03 +01:00
.gitignore Expand .gitignore for more editors 2016-11-13 13:22:58 +01:00
.gitreview Whoops, track not trace 2016-10-24 17:03:56 -07:00
.jshintrc Pass jshint 2014-05-23 19:40:37 +00:00
composer.json build: Updating development dependencies 2016-01-05 10:41:30 -08:00
COPYING Add COPYING 2014-01-22 21:30:37 +00:00
extension.json Add titleblacklistlog to viewrestrictedlogs grant 2016-10-26 15:28:34 -04:00
Gruntfile.js build: Configure banana-checker and jsonlint 2015-06-19 22:31:17 -07:00
mw.ext.TitleBlacklist.lua Add mw.ext.TitleBlacklist.test 2014-01-14 17:06:07 -05:00
package.json build: Updating development dependencies 2015-12-29 11:59:10 -08:00
TitleBlacklist.hooks.php Update for API error i18n 2016-11-14 12:48:26 -05:00
TitleBlacklist.library.php Return registerInterface() per Ibdc1f4ef 2014-10-03 10:49:28 -04:00
TitleBlacklist.list.php TitleBlacklistTest singleton can now be destroyed 2017-01-23 17:41:03 +01:00
TitleBlacklist.php Use extension registration, replace constants with some reasonable values, kill i18n shim 2015-05-19 17:23:14 +01:00
TitleBlacklistAuthenticationRequest.php Update for AuthManager 2016-05-12 00:23:11 +00:00
TitleBlacklistPreAuthenticationProvider.php Add $options parameter for testUserForCreation() 2016-06-16 17:57:06 -04:00