dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Introduce constants for fetchLanguageName(s)"
[lhc/web/wiklou.git]
/
tests
/
qunit
/
data
/
load.mock.php
diff --git
a/tests/qunit/data/load.mock.php
b/tests/qunit/data/load.mock.php
index
2300949
..
2238fce
100644
(file)
--- a/
tests/qunit/data/load.mock.php
+++ b/
tests/qunit/data/load.mock.php
@@
-22,6
+22,10
@@
* @author Lupo
* @since 1.20
*/
* @author Lupo
* @since 1.20
*/
+
+// This file doesn't run as part of MediaWiki
+// phpcs:disable MediaWiki.Usage.SuperGlobalsUsage.SuperGlobals
+
header( 'Content-Type: text/javascript; charset=utf-8' );
$moduleImplementations = [
header( 'Content-Type: text/javascript; charset=utf-8' );
$moduleImplementations = [
@@
-99,7
+103,7
@@
if ( isset( $_GET['modules'] ) ) {
. '} );';
} else {
// Default
. '} );';
} else {
// Default
- $response .= 'mw.loader.state(' . json_encode(
$module ) . ', "missing"
);' . "\n";
+ $response .= 'mw.loader.state(' . json_encode(
[ $module => 'missing' ] ) . '
);' . "\n";
}
}
}
}
}
}