MathConfig::NEW, 'MathValidModes' => [ MathConfig::MODE_SOURCE ], 'MathEntitySelectorFallbackUrl' => self::DUMMY_URL, ] ); $services = new MediaWikiServices( $config ); $services->defineService( 'Math.Config', static function ( MediaWikiServices $services ){ return new MathConfig( new ServiceOptions( MathConfig::CONSTRUCTOR_OPTIONS, $services->get( 'BootstrapConfig' ) ), ExtensionRegistry::getInstance() ); } ); $mathConfig = Math::getMathConfig( $services ); $this->assertStringContainsString( 'new', $mathConfig->texCheckDisabled() ); } }