mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-12-18 09:40:49 +00:00
Check VE is available before running unit tests
Bug: T127763 Change-Id: I2ad8814d39b16ce5918d9f53ba9bf4bf59a0cbe9
This commit is contained in:
parent
88f4cdfbd6
commit
55d33e13b0
|
@ -44,8 +44,8 @@ class CiteHooks {
|
||||||
$resourceModules = $resourceLoader->getConfig()->get( 'ResourceModules' );
|
$resourceModules = $resourceLoader->getConfig()->get( 'ResourceModules' );
|
||||||
|
|
||||||
if (
|
if (
|
||||||
isset( $resourceModules[ 'ext.cite.visualEditor' ] ) ||
|
isset( $resourceModules[ 'ext.visualEditor.mediawiki' ] ) ||
|
||||||
$resourceLoader->isModuleRegistered( 'ext.cite.visualEditor' )
|
$resourceLoader->isModuleRegistered( 'ext.visualEditor.mediawiki' )
|
||||||
) {
|
) {
|
||||||
$testModules['qunit']['ext.cite.visualEditor.test'] = array(
|
$testModules['qunit']['ext.cite.visualEditor.test'] = array(
|
||||||
'scripts' => array(
|
'scripts' => array(
|
||||||
|
|
Loading…
Reference in a new issue