Merge "Reload the test user instance before checking the edit count"

This commit is contained in:
jenkins-bot 2018-10-23 18:53:33 +00:00 committed by Gerrit Code Review
commit 108ec1117f

View file

@ -34,7 +34,14 @@
* @covers AFComputedVariable
*/
class AbuseFilterTest extends MediaWikiTestCase {
protected static $mUser, $mTitle, $mPage, $mVariables;
/** @var User */
protected static $mUser;
/** @var Title */
protected static $mTitle;
/** @var WikiPage */
protected static $mPage;
/** @var AbuseFilterVariableHolder */
protected static $mVariables;
/**
* @var array These tables will be deleted in parent::tearDown.
@ -148,6 +155,8 @@ class AbuseFilterTest extends MediaWikiTestCase {
self::$mUser
);
}
// Reload to reflect deferred update
self::$mUser->clearInstanceCache();
$result = 7;
break;
case 'user_name':