summaryrefslogtreecommitdiff
path: root/tests/qunit/data/load.mock.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qunit/data/load.mock.php')
-rw-r--r--tests/qunit/data/load.mock.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/qunit/data/load.mock.php b/tests/qunit/data/load.mock.php
index 1c189703..f6eff77a 100644
--- a/tests/qunit/data/load.mock.php
+++ b/tests/qunit/data/load.mock.php
@@ -24,7 +24,8 @@
*/
header( 'Content-Type: text/javascript; charset=utf-8' );
-require_once '../../../includes/Xml.php';
+require_once __DIR__ . '/../../../includes/json/FormatJson.php';
+require_once __DIR__ . '/../../../includes/Xml.php';
$moduleImplementations = array(
'testUsesMissing' => "
@@ -50,7 +51,7 @@ if ( isset( $_GET['modules'] ) ) {
if ( isset( $moduleImplementations[$module] ) ) {
$response .= $moduleImplementations[$module];
} else {
- $response .= Xml::encodeJsCall( 'mw.loader.state', array( $module, 'missing' ) );
+ $response .= Xml::encodeJsCall( 'mw.loader.state', array( $module, 'missing' ), true );
}
}
}