mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-19 05:15:52 +00:00
6bd082920f
Changes: * Remove $wgPopupsExperiment and $wgPopupsExperimentConfig config variables. * Remove $wgPopupsExperimentIsBetaFeatureEnabled client-side config variable. * Remove MakeGlobalVariablesScript hook handler as it's redundant. Bug: T152687 Change-Id: Id25cd7c16da14b7ce9bad502565de9ff6d29434e
22 lines
429 B
JavaScript
22 lines
429 B
JavaScript
( function ( mw ) {
|
|
|
|
/**
|
|
* Creates a **minimal** stub that can be used in place of an `mw.User`
|
|
* instance.
|
|
*
|
|
* @param {boolean} isAnon The return value of the `#isAnon`.
|
|
* @return {Object}
|
|
*/
|
|
mw.popups.tests.stubs.createStubUser = function createStubUser( isAnon ) {
|
|
return {
|
|
isAnon: function () {
|
|
return isAnon;
|
|
},
|
|
sessionId: function () {
|
|
return '0123456789';
|
|
}
|
|
};
|
|
};
|
|
|
|
}( mediaWiki ) );
|