Check VE is available before running unit tests

Bug: T127763
Change-Id: I2ad8814d39b16ce5918d9f53ba9bf4bf59a0cbe9
This commit is contained in:
Ed Sanders 2016-03-01 12:21:00 +00:00
parent 88f4cdfbd6
commit 55d33e13b0

View file

@ -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(