mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-24 06:03:49 +00:00
745d911d68
Regression tests to make sure T286140 does not happen again. In the process, discovered what caused that bug with afl_rev_id not being set: EditRevUpdater::updateRev() compares the WikiPage given in the PageSaveComplete hook to the one given to it by AbuseFilterHooks from onEditFilterMergedContent, and compares the two using `===`, meaning that they must refer to the same underlying object. That bug was caused because AbuseFilterHooks changed to providing a different object, despite still referring to the same underlying page. We should probably change that behavior in EditRevUpdater, but for now updated AbuseFilterConsequencesTest to pass the same object around by using RequestContext::setWikiPage() and providing the WikiPage object to MediaWikiIntegrationTestCase::editPage(). Bug: T286140 Change-Id: I6562f513c463538af6b59b12a64564b254024613 |
||
---|---|---|
.phan | ||
db_patches | ||
i18n | ||
includes | ||
maintenance | ||
modules | ||
tests | ||
.eslintrc.json | ||
.gitignore | ||
.gitreview | ||
.phpcs.xml | ||
.stylelintrc.json | ||
AbuseFilter.alias.php | ||
CODE_OF_CONDUCT.md | ||
composer.json | ||
COPYING | ||
extension.json | ||
Gruntfile.js | ||
package-lock.json | ||
package.json |