* Update extensions/AbuseFilter from branch 'REL1_43'
to 18426afba58c3da02a154c70d36945e0a9b35a59
- tests: skip config reset when ConfirmEdit is not loaded
The ConfirmEditHandlerTest integration tests has a tearDown() function
invoking MediaWiki\Extension\ConfirmEdit\Hooks::getInstance(). When
ConfirmEdit is NOT loaded the test fails with:
RuntimeException: mediaWikiSetUp() was called but not mediaWikiTearDown()
use assertPostConditions() instead of tearDown() for post-test assertions.
The reason is the class is not available which leads to an exception and
parent::tearDown() is not invoked. In MediaWikiIntegrationTestCase,
$setupWithoutTeardown is thus not reset and the next case claims
tearDown has never been called.
This was caused by Ib223d0fee8096d1bc768bf0a49ff453384dab3ef which
rightfully moved markTestSkippedIfExtensionNotLoaded() from the test to
setUp() but missed tearDown() had a call to ConfirmEdit code.
Change-Id: I6ecb82e4c92d8100b8376c6c720da009f09e8883
(cherry picked from commit 7406ed8fedd173d88a9e594d05f18f967ceaa9b5)
|
||
|---|---|---|
| .. | ||
| AbuseFilter@18426afba5 | ||
| CategoryTree@0ff717b91a | ||
| Cite@c7d2f2b3f3 | ||
| CiteThisPage@d1272d1214 | ||
| CodeEditor@97bb077f53 | ||
| ConfirmEdit@eb1ecc174e | ||
| DiscussionTools@00bc77fbf7 | ||
| Echo@5e4a362e59 | ||
| Gadgets@ec62b2070d | ||
| ImageMap@b484437d9f | ||
| InputBox@b12b990f35 | ||
| Interwiki@d192f6d809 | ||
| Linter@a4848af17f | ||
| LoginNotify@78d82f1c47 | ||
| Math@bf0e371d77 | ||
| MultimediaViewer@be2198b192 | ||
| Nuke@c8eb3e3aff | ||
| OATHAuth@b6d784c40b | ||
| PageImages@7d5fd46d6d | ||
| ParserFunctions@313bd53825 | ||
| PdfHandler@de41cc4864 | ||
| Poem@7f17973c88 | ||
| ReplaceText@cef49ab3ec | ||
| Scribunto@a3bdfc0d24 | ||
| SecureLinkFixer@d7ffecb943 | ||
| SpamBlacklist@4409e938ae | ||
| SyntaxHighlight_GeSHi@faffea1369 | ||
| TemplateData@8c0e5eb4e1 | ||
| TextExtracts@55355a1551 | ||
| Thanks@45143109d2 | ||
| TitleBlacklist@b7ff44884d | ||
| VisualEditor@f4c93b2b1b | ||
| WikiEditor@49c7a2ff5c | ||
| .gitignore | ||
| .vsls.json | ||
| README | ||
== User Information ==
Extensions are distributed separately. Drop them into this directory and enable
as per the extension's installation instructions.
You can find a list of extensions and documentation at
<https://www.mediawiki.org/wiki/Special:MyLanguage/Category:Extensions>.
== Development Information ==
If you are a developer, you might want to fetch the extension tree in another
directory and make a symbolic link:
mediawiki/extensions$ ln -s ../../extensions-trunk/FooBar
Most extensions are available through Git:
https://gerrit.wikimedia.org/g/mediawiki/extensions
Please note that under POSIX systems (Linux...), parent of a symbolic path
refers to the link source, NOT to the target! You should check the env
variable MW_INSTALL_PATH in case the extension is not in the default location.
The following code snippet lets you override the default path:
$IP = getenv( 'MW_INSTALL_PATH' );
if ( $IP === false ) {
$IP = __DIR__ . '/../..';
}
require_once "$IP/maintenance/Maintenance.php"; // a MediaWiki core file